aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/mips16_attr_not_allowed.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/mips16_attr_not_allowed.c')
-rw-r--r--test/Sema/mips16_attr_not_allowed.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Sema/mips16_attr_not_allowed.c b/test/Sema/mips16_attr_not_allowed.c
new file mode 100644
index 000000000000..54f27d619810
--- /dev/null
+++ b/test/Sema/mips16_attr_not_allowed.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fsyntax-only -verify %s
+
+void __attribute__((nomips16)) foo32(); // expected-warning {{unknown attribute 'nomips16' ignored}}
+void __attribute__((mips16)) foo16(); // expected-warning {{unknown attribute 'mips16' ignored}}
+
+
+