[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Rewriter / rewrite-line-directive.m
blobec50a83d3c194c82306724a062693de61f09b235
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 // rdar://13138170
8 int z();
10 int x() {
11     id foo;
12     for (id y in foo) {
13         z();
14     }
15     return 0;
17 // CHECK-LP-NOT: #line
18 // CHECK-LPG: #line