Debian Codegraph @

clang/test/Rewriter/rewrite-line-directive.m

raw
1 // RUN: %clang_cc1 -E %s -o %t.mm
2 // RUN: %clang -fms-extensions -rewrite-objc %t.mm -o %t-rw.cpp
3 // RUN: FileCheck -check-prefix CHECK-LP --input-file=%t-rw.cpp %s
4 // RUN: %clang -g -fms-extensions -rewrite-objc %t.mm -o %t-rw.cpp
5 // RUN: FileCheck -check-prefix CHECK-LPG --input-file=%t-rw.cpp %s
6
7 int z();
8
9 int x() {
10 id foo;
11 for (id y in foo) {
12 z();
13 }
14 return 0;
15 }
16 // CHECK-LP-NOT: #line
17 // CHECK-LPG: #line