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

Thread local variables, bug 260387.

This commit is contained in:
Markus Schorn 2009-01-08 13:27:59 +00:00
parent 4c5c6bc7d3
commit 8e652c282f
2 changed files with 9 additions and 0 deletions

View file

@ -5871,4 +5871,12 @@ public class AST2Tests extends AST2BaseTest {
parseAndCheckBindings(code, ParserLanguage.CPP);
}
// __thread int i;
// static __thread int j;
// extern __thread int k;
public void testThreadLocalVariables_Bug260387() throws Exception {
final String code= getAboveComment();
parseAndCheckBindings(code, ParserLanguage.C, true);
parseAndCheckBindings(code, ParserLanguage.CPP, true);
}
}

View file

@ -35,6 +35,7 @@ public abstract class GNUScannerExtensionConfiguration extends AbstractScannerEx
addMacro("__imag__", "(int)");
addMacro("__real__", "(int)");
addMacro("__stdcall", "");
addMacro("__thread", "");
addMacro("__builtin_va_arg(ap,type)", "*(type *)ap");
addMacro("__builtin_constant_p(exp)", "0");