mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Support for __builtin_types_compatible_p, bug 241570.
This commit is contained in:
parent
5a6673a049
commit
475e923db6
2 changed files with 2 additions and 2 deletions
|
@ -5265,7 +5265,7 @@ public class AST2Tests extends AST2BaseTest {
|
|||
|
||||
// void test() {
|
||||
// char* p;
|
||||
// if (__builtin_types_compatible_p(typeof(p), char[]))) {
|
||||
// if (__builtin_types_compatible_p(typeof(p), char[])) {
|
||||
// }
|
||||
// }
|
||||
public void testBuiltinTypesCompatible_bug241570() throws Exception {
|
||||
|
|
|
@ -38,7 +38,7 @@ public abstract class GNUScannerExtensionConfiguration extends AbstractScannerEx
|
|||
|
||||
addMacro("__builtin_va_arg(ap,type)", "*(type *)ap");
|
||||
addMacro("__builtin_constant_p(exp)", "0");
|
||||
addMacro("__builtin_types_compatible_p(x,y)", "__builtin_types_compatible_p(sizeof(x),sizeof(y)");
|
||||
addMacro("__builtin_types_compatible_p(x,y)", "__builtin_types_compatible_p(sizeof(x),sizeof(y))");
|
||||
|
||||
addPreprocessorKeyword(Keywords.cINCLUDE_NEXT, IPreprocessorDirective.ppInclude_next);
|
||||
addPreprocessorKeyword(Keywords.cIMPORT, IPreprocessorDirective.ppImport);
|
||||
|
|
Loading…
Add table
Reference in a new issue