1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 bool f() {
4   return __builtin_types_compatible_p(int, const int); // expected-error{{C++}}
5 }
6