aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/attr-msp430.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/attr-msp430.c')
-rw-r--r--test/Sema/attr-msp430.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/attr-msp430.c b/test/Sema/attr-msp430.c
new file mode 100644
index 000000000000..d08cd8ecc9ef
--- /dev/null
+++ b/test/Sema/attr-msp430.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple msp430-unknown-unknown -fsyntax-only -verify %s
+
+int i;
+void f(void) __attribute__((interrupt(i))); /* expected-error {{'interrupt' attribute requires an integer constant}} */
+
+void f2(void) __attribute__((interrupt(12)));