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:
parent
4ff11e66bf
commit
878fe8fb77
2 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -1859,6 +1859,8 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
throwBacktrack(offset, endOffset - offset);
|
||||
}
|
||||
|
||||
__attribute__();
|
||||
|
||||
switch (LT(1)) {
|
||||
case IToken.tSEMI:
|
||||
case IToken.tEOC:
|
||||
|
|
Loading…
Add table
Reference in a new issue