diff options
author | Sam Bishop <sam@bishop.dhs.org> | 2008-03-21 08:05:55 +0000 |
---|---|---|
committer | Sam Bishop <sam@bishop.dhs.org> | 2008-03-21 08:05:55 +0000 |
commit | 49d8dc55bf7b177bbb994b51833e2aee85e36d91 (patch) | |
tree | c47d70ae5dd6138063910fbc77fd1757f00b5ca0 /test/Preprocessor/macro_paste_mscomment.c | |
parent | 9a4939f7edb5dc40b20865edbd4ddd830450423d (diff) |
Only invoke the preprocessor; it's the only thing being tested. Also, check
the output to make sure that the macros and comments are being treated as such.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macro_paste_mscomment.c')
-rw-r--r-- | test/Preprocessor/macro_paste_mscomment.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Preprocessor/macro_paste_mscomment.c b/test/Preprocessor/macro_paste_mscomment.c index 7e06b6d375..bc364ea170 100644 --- a/test/Preprocessor/macro_paste_mscomment.c +++ b/test/Preprocessor/macro_paste_mscomment.c @@ -1,4 +1,5 @@ -// RUN: clang %s -fsyntax-only -fms-extensions +// RUN: clang -E -fms-extensions %s | sed '/^#.\+/d' | tr -d '\n' | +// RUN: grep '^int foo;int bar;int baz;$' | count 1 // This horrible stuff should preprocess into (other than whitespace): // int foo; // int bar; |