summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/attributes.c
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@bugseng.com>2014-08-16 08:29:27 +0000
committerAbramo Bagnara <abramo.bagnara@bugseng.com>2014-08-16 08:29:27 +0000
commit152eb39cc64ba78fba9869509a4083c765061851 (patch)
treecb0dec9a185e0ddd39f4d9cd8e5ea42c7e30c37f /clang/test/Parser/attributes.c
parentae050bb05734c6e9344443990f4a1c6ffb52daf8 (diff)
downloadbcm5719-llvm-152eb39cc64ba78fba9869509a4083c765061851.tar.gz
bcm5719-llvm-152eb39cc64ba78fba9869509a4083c765061851.zip
Uniformed parsing of GNU attributes at line beginnning and added GNU attributes parsing FIXMEs.
llvm-svn: 215814
Diffstat (limited to 'clang/test/Parser/attributes.c')
-rw-r--r--clang/test/Parser/attributes.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Parser/attributes.c b/clang/test/Parser/attributes.c
index 3d69c72c322..b815b8da3dc 100644
--- a/clang/test/Parser/attributes.c
+++ b/clang/test/Parser/attributes.c
@@ -95,3 +95,13 @@ void testFundef5() __attribute__(()) { }
__attribute__((pure)) int testFundef6(int a) { return a; }
void deprecatedTestFun(void) __attribute__((deprecated()));
+
+struct s {
+ int a;
+};
+
+// This test ensure compatibility with parsing GNU-style attributes
+// where the attribute is on a separate line from the elaborated type
+// specifier.
+struct s
+__attribute__((used)) bar;
OpenPOWER on IntegriCloud