xref: /minix3/external/bsd/llvm/dist/clang/test/Rewriter/rewrite-line-directive.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -E %s -o %t.mm
2*f4a2713aSLionel Sambuc// RUN: %clang -fms-extensions -rewrite-objc %t.mm -o %t-rw.cpp
3*f4a2713aSLionel Sambuc// RUN: FileCheck -check-prefix CHECK-LP --input-file=%t-rw.cpp %s
4*f4a2713aSLionel Sambuc// RUN: %clang -g -fms-extensions -rewrite-objc %t.mm -o %t-rw.cpp
5*f4a2713aSLionel Sambuc// RUN: FileCheck -check-prefix CHECK-LPG --input-file=%t-rw.cpp %s
6*f4a2713aSLionel Sambuc// rdar://13138170
7*f4a2713aSLionel Sambuc
8*f4a2713aSLionel Sambucint z();
9*f4a2713aSLionel Sambuc
10*f4a2713aSLionel Sambucint x() {
11*f4a2713aSLionel Sambuc    id foo;
12*f4a2713aSLionel Sambuc    for (id y in foo) {
13*f4a2713aSLionel Sambuc        z();
14*f4a2713aSLionel Sambuc    }
15*f4a2713aSLionel Sambuc    return 0;
16*f4a2713aSLionel Sambuc}
17*f4a2713aSLionel Sambuc// CHECK-LP-NOT: #line
18*f4a2713aSLionel Sambuc// CHECK-LPG: #line
19