brintos

brintos / llvm-project-archived public Read only

0
0
Text · 594 B · 0332ac7 Raw
18 lines · c
1// RUN: %clang_cc1 -fms-extensions -D MS -isystem %S/Inputs %s -fsyntax-only -verify2// RUN: %clang_cc1 -fms-extensions -D MS -Wno-keyword-compat -I %S/Inputs %s -fsyntax-only -verify3// RUN: %clang_cc1 -fms-extensions -D MS -D NOT_SYSTEM -I %S/Inputs %s -fsyntax-only -verify4// RUN: %clang_cc1 -isystem %S/Inputs %s -fsyntax-only -verify5 6// PR17824: GNU libc uses MS keyword __uptr as an identifier in C mode7#include <ms-keyword-system-header.h>8 9void fn(void) {10  WS ws;11  ws.__uptr = 0;12#ifdef MS13  // expected-error@-2 {{expected identifier}}14#else15  // expected-no-diagnostics16#endif17}18