diff options
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; |