summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/attr-common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/attr-common.cpp')
-rw-r--r--test/SemaCXX/attr-common.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/attr-common.cpp b/test/SemaCXX/attr-common.cpp
new file mode 100644
index 0000000..58b3013
--- /dev/null
+++ b/test/SemaCXX/attr-common.cpp
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+__attribute__((common)) int x; // expected-error {{common attribute is not supported in C++}}
OpenPOWER on IntegriCloud