diff options
author | Abramo Bagnara <abramo.bagnara@bugseng.com> | 2014-08-16 08:29:27 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@bugseng.com> | 2014-08-16 08:29:27 +0000 |
commit | 152eb39cc64ba78fba9869509a4083c765061851 (patch) | |
tree | cb0dec9a185e0ddd39f4d9cd8e5ea42c7e30c37f /clang/test/Parser/attributes.c | |
parent | ae050bb05734c6e9344443990f4a1c6ffb52daf8 (diff) | |
download | bcm5719-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.c | 10 |
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; |