diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2011-06-07 06:07:12 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2011-06-07 06:07:12 +0000 |
| commit | a6820332b35369f1a0d9afe1fe80532601296d49 (patch) | |
| tree | 9fb220f2fe4c84228ace20115dd9c0aa07682387 /clang/test/Frontend/undef.c | |
| parent | 1ca0a6722c8e12649a173e15de866b60ce3503c0 (diff) | |
| download | bcm5719-llvm-a6820332b35369f1a0d9afe1fe80532601296d49.tar.gz bcm5719-llvm-a6820332b35369f1a0d9afe1fe80532601296d49.zip | |
The macros defined by the language standard are still available even when the
-undef flag is passed in. Also __ASSEMBLER__ with -x assembler-with-cpp. (Don't
ask.)
llvm-svn: 132708
Diffstat (limited to 'clang/test/Frontend/undef.c')
| -rw-r--r-- | clang/test/Frontend/undef.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Frontend/undef.c b/clang/test/Frontend/undef.c new file mode 100644 index 00000000000..f539cdce117 --- /dev/null +++ b/clang/test/Frontend/undef.c @@ -0,0 +1,4 @@ +// RUN: %clang -undef -x assembler-with-cpp -E %s +#ifndef __ASSEMBLER__ +#error "Must be preprocessed as assembler." +#endif |

