diff options
Diffstat (limited to 'test/Parser/attributes.c')
-rw-r--r-- | test/Parser/attributes.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Parser/attributes.c b/test/Parser/attributes.c index 3d69c72..b815b8d 100644 --- a/test/Parser/attributes.c +++ b/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; |