summaryrefslogtreecommitdiff
path: root/clang/test/Frontend/undef.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Frontend/undef.c')
-rw-r--r--clang/test/Frontend/undef.c4
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 0000000..f539cdc
--- /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