[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / clang / test / Headers / ms-cppoperkey1.cpp
blobc03efc9dacde4af632308917cfcef95e8264e7de
1 // RUN: %clang_cc1 \
2 // RUN: -fms-compatibility -x c++-cpp-output \
3 // RUN: -ffreestanding -fsyntax-only -Werror \
4 // RUN: %s -verify
7 # 1 "t.cpp"
8 # 1 "query.h" 1 3 4
9 // MS header <query.h> uses operator keyword as field name.
10 // Compile without syntax errors.
11 struct tagRESTRICTION
13 union _URes
15 int or; // Note use of cpp operator token
16 } res;
20 int aa ( int x)
22 // In system header code, treat operator keyword as identifier.
23 if ( // expected-note{{to match this '('}}
24 x>1 or x<0) return 1; // expected-error{{expected ')'}}
25 else return 0;