diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-09-13 17:25:51 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-09-13 17:25:51 +0000 |
commit | 67330f197270d857e79d5da8309b9348f80da38d (patch) | |
tree | fe5820cd2c42a60e4c38cf285b8088b8aef7582a /test/Driver/retain-comments-from-system-headers.c | |
parent | 2df67ea86f64c2a94b973d8fda2e3c1fd53fc84d (diff) |
Add tests for r163778.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/retain-comments-from-system-headers.c')
-rw-r--r-- | test/Driver/retain-comments-from-system-headers.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Driver/retain-comments-from-system-headers.c b/test/Driver/retain-comments-from-system-headers.c new file mode 100644 index 0000000000..4d3e2ffe06 --- /dev/null +++ b/test/Driver/retain-comments-from-system-headers.c @@ -0,0 +1,9 @@ +// Check that we pass -fretain-comments-from-system-headers to frontend. +// +// RUN: %clang -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-RETAIN +// RUN: %clang -c %s -fretain-comments-from-system-headers -### 2>&1 | FileCheck %s --check-prefix=CHECK-RETAIN +// +// CHECK-RETAIN: -fretain-comments-from-system-headers +// +// CHECK-NO-RETAIN-NOT: -fretain-comments-from-system-headers + |