diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-18 19:41:18 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-03-18 19:41:18 +0000 |
commit | e0a75d67a3cd6985106867ebe34178b701be552a (patch) | |
tree | 475d49d0375d4d92811b8d8afb07ad22c1233971 /clang/test/Rewriter | |
parent | 69e76f80e28fc969631a6b191f394c8ffc1618b1 (diff) | |
download | llvm-e0a75d67a3cd6985106867ebe34178b701be552a.zip llvm-e0a75d67a3cd6985106867ebe34178b701be552a.tar.gz llvm-e0a75d67a3cd6985106867ebe34178b701be552a.tar.bz2 |
Objective-C modern translator. Don't put line info
into the pre-preprocessed file to be passed to
modern translator when compiling in no debug mode.
// rdar://13138170
llvm-svn: 177311
Diffstat (limited to 'clang/test/Rewriter')
-rw-r--r-- | clang/test/Rewriter/rewrite-line-directive.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/Rewriter/rewrite-line-directive.m b/clang/test/Rewriter/rewrite-line-directive.m new file mode 100644 index 0000000..5c4e957 --- /dev/null +++ b/clang/test/Rewriter/rewrite-line-directive.m @@ -0,0 +1,18 @@ +// RUN: %clang_cc1 -E %s -o %t.mm +// RUN: %clang -fms-extensions -rewrite-objc %t.mm -o %t-rw.cpp +// RUN: FileCheck -check-prefix LP --input-file=%t-rw.cpp %s +// RUN: %clang -g -fms-extensions -rewrite-objc %t.mm -o %t-rw.cpp +// RUN: FileCheck -check-prefix LPG --input-file=%t-rw.cpp %s +// rdar://13138170 + +int z(); + +int x() { + id foo; + for (id y in foo) { + z(); + } + return 0; +} +// CHECK-LP-NOT: #line +// CHECK-LPG: #line |