1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 351228: Attributes at end of using directive.

This commit is contained in:
Markus Schorn 2011-07-06 08:17:33 +02:00
parent 4ff11e66bf
commit 878fe8fb77
2 changed files with 14 additions and 0 deletions

View file

@ -5327,6 +5327,18 @@ public class AST2CPPTests extends AST2BaseTest {
parse( getAboveComment(), ParserLanguage.CPP, true, true );
}
// namespace outer {
// namespace inner {
// class foo{};
// }
// using namespace inner __attribute__((__strong__));
// }
// outer::foo x;
// outer::inner::foo y;
public void testAttributeInUsingDirective_351228() throws Exception {
parseAndCheckBindings();
}
// class C {
// public:
// int i;

View file

@ -1859,6 +1859,8 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
throwBacktrack(offset, endOffset - offset);
}
__attribute__();
switch (LT(1)) {
case IToken.tSEMI:
case IToken.tEOC: