commit | 6fc7ad1107b837584c920c9f355db83fb2f00a75 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Thu Jun 20 22:55:04 2013 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Thu Jun 20 22:55:04 2013 +0000 |
tree | 2c5b2c59a753b1bbe3c78df41ce7f8a371c2ebf9 | |
parent | 663150f6375e87b525ae1834751a47261a398b44 [diff] [blame] |
Don't allow __attribute__((common)) in C++. PR16330. llvm-svn: 184493
diff --git a/clang/test/SemaCXX/attr-common.cpp b/clang/test/SemaCXX/attr-common.cpp new file mode 100644 index 0000000..58b3013 --- /dev/null +++ b/clang/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++}}