Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-09-17 01:52:22 -0400
committerNathan Ridge2018-09-24 21:24:11 -0400
commitb803d1030c8cc4458b31d3b796a41a43ca8c8051 (patch)
treebbfa6e4b8711d52d1bb72e21a1a3cba65fe28810 /core/org.eclipse.cdt.core.tests
parent732c4874ee94ec65bd90b12d44f55d57585471bb (diff)
downloadorg.eclipse.cdt-b803d1030c8cc4458b31d3b796a41a43ca8c8051.tar.gz
org.eclipse.cdt-b803d1030c8cc4458b31d3b796a41a43ca8c8051.tar.xz
org.eclipse.cdt-b803d1030c8cc4458b31d3b796a41a43ca8c8051.zip
Bug 538615 - GNU-style attribute preceding standard attribute specifier
Diffstat (limited to 'core/org.eclipse.cdt.core.tests')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
index f685500cbea..65c9ce2333b 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
@@ -11666,6 +11666,11 @@ public class AST2CPPTests extends AST2CPPTestBase {
parseAndCheckBindings();
}
+ // __attribute__((section(".example"))) alignas(4) static int waldo;
+ public void testAlignasAfterAttribute_538615() throws Exception {
+ parseAndCheckBindings(getAboveComment(), CPP, true /* use GNU extensions */);
+ }
+
// int operator "" _A(unsigned long long i) { return 1; }
// int operator "" _B(long double d) { return 1; }
// int operator "" _C(const char* s, unsigned int sz) { return sz; }

Back to the top