aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-06-07 06:07:12 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-06-07 06:07:12 +0000
commita9c6441c73686c34fdf5de681bfd81381fd0903c (patch)
treeeadd993fd08b199bacdfb6ec42f7ac55879f1391 /test/Frontend
parent5b01b8319012c6b568de6dfff935c1b16184952f (diff)
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.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend')
-rw-r--r--test/Frontend/undef.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Frontend/undef.c b/test/Frontend/undef.c
new file mode 100644
index 0000000000..f539cdce11
--- /dev/null
+++ b/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