aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/ast-codegen.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Frontend/ast-codegen.c')
-rw-r--r--test/Frontend/ast-codegen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Frontend/ast-codegen.c b/test/Frontend/ast-codegen.c
new file mode 100644
index 0000000000..795be92a24
--- /dev/null
+++ b/test/Frontend/ast-codegen.c
@@ -0,0 +1,5 @@
+// RUN: clang -emit-ast -o %t.ast %s &&
+// RUN: clang -emit-llvm -S -o - %t.ast | FileCheck %s
+
+// CHECK: module asm "foo"
+__asm__("foo");