1 /// Ensure that -fexperimental-omit-vtable-rtti is only allowed if rtti is
4 // RUN: not %clang -fsyntax-only -Xclang -fexperimental-omit-vtable-rtti -frtti %s 2>&1 | FileCheck -check-prefix=ERROR %s
5 // RUN: not %clang -fsyntax-only -Xclang -fexperimental-omit-vtable-rtti -fno-rtti -frtti %s 2>&1 | FileCheck -check-prefix=ERROR %s
7 // RUN: %clang -fsyntax-only -Xclang -fexperimental-omit-vtable-rtti -fno-rtti %s 2>&1 | FileCheck -check-prefix=NO-ERROR %s --allow-empty
8 // RUN: %clang -fsyntax-only -Xclang -fno-experimental-omit-vtable-rtti -frtti %s 2>&1 | FileCheck -check-prefix=NO-ERROR %s --allow-empty
9 // RUN: %clang -fsyntax-only -Xclang -fexperimental-omit-vtable-rtti -Xclang -fno-experimental-omit-vtable-rtti -frtti %s 2>&1 | FileCheck -check-prefix=NO-ERROR %s --allow-empty
11 // ERROR: -fexperimental-omit-vtable-rtti call only be used with -fno-rtti
12 // NO-ERROR-NOT: -fexperimental-omit-vtable-rtti call only be used with -fno-rtti