Clang Project

clang_source_code/test/Headers/ms-cppoperkey.cpp
1// RUN: %clang_cc1 \
2// RUN:     -fms-compatibility -x c++-cpp-output \
3// RUN:     -ffreestanding -fsyntax-only -Werror \
4// RUN:     %s -verify
5// expected-no-diagnostics
6# 1 "t.cpp"
7# 1 "query.h" 1 3
8// MS header <query.h> uses operator keyword as field name.  
9// Compile without syntax errors.
10struct tagRESTRICTION
11  {
12   union _URes 
13     {
14       int or; // Note use of cpp operator token
15     } res;
16  };
17