xref: /llvm-project/clang/test/Driver/cxx-operator-names.cpp (revision 9833b57981c4e9402a326b5acd805e074cd2c802)
1 // RUN: %clang -### -S -foperator-names -fno-operator-names %s 2>&1 | \
2 // RUN:   FileCheck -check-prefix=CHECK-1 %s
3 // CHECK-1: "-fno-operator-names"
4 
5 // RUN: %clang -### -S -fno-operator-names -foperator-names %s 2>&1 | \
6 // RUN:   FileCheck -check-prefix=CHECK-2 %s
7 // CHECK-2-NOT: "-fno-operator-names"
8