summaryrefslogtreecommitdiffstats
path: root/test/Sema/ms-fuzzy-asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/ms-fuzzy-asm.c')
-rw-r--r--test/Sema/ms-fuzzy-asm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Sema/ms-fuzzy-asm.c b/test/Sema/ms-fuzzy-asm.c
new file mode 100644
index 0000000..58dcbcf
--- /dev/null
+++ b/test/Sema/ms-fuzzy-asm.c
@@ -0,0 +1,9 @@
+// RUN: clang-cc %s -verify -fms-extensions
+
+#define M __asm int 0x2c
+#define M2 int
+
+void t1(void) { M }
+void t2(void) { __asm int 0x2c }
+void t3(void) { __asm M2 0x2c }
+
OpenPOWER on IntegriCloud