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:
parent
4c5c6bc7d3
commit
8e652c282f
2 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue