blob: c623dbbe9dcaa5e61b6966f1a5dff54fd35d2200 [file] [log] [blame]
// This file should FAIL to build iff exceptions are enabled and RTTI is disabled
#ifndef __EXCEPTIONS
int main(void) { return 0; }
#else // !exceptions
#include <typeinfo>
#include <stdio.h>
class Foo { int x; };
int main(void) {
printf("%p\n", typeid(Foo)); // will fail without -frtti
return 0;
}
#endif