1
0
Fork 0
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:
Markus Schorn 2008-07-29 09:27:42 +00:00
parent 5a6673a049
commit 475e923db6
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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);