summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/asm-parser-info.S
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/asm-parser-info.S')
-rw-r--r--clang/test/CodeGen/asm-parser-info.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm-parser-info.S b/clang/test/CodeGen/asm-parser-info.S
new file mode 100644
index 00000000000..62145c0a74d
--- /dev/null
+++ b/clang/test/CodeGen/asm-parser-info.S
@@ -0,0 +1,12 @@
+// REQUIRES: x86-registered-target
+// RUN: %clang --target=x86_64-unknown-linux-gnu -c %s -o /dev/null
+
+// Check that cc1as can use assembler info in object generation.
+.data
+
+foo:
+.if . - foo == 0
+ .byte 0xaa
+.else
+ .byte 0x00
+.endif
OpenPOWER on IntegriCloud