• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fms-extensions -D MS -isystem %S/Inputs %s -fsyntax-only -verify
2 // RUN: %clang_cc1 -fms-extensions -D MS -Wno-keyword-compat -I %S/Inputs %s -fsyntax-only -verify
3 // RUN: %clang_cc1 -fms-extensions -D MS -D NOT_SYSTEM -I %S/Inputs %s -fsyntax-only -verify
4 // RUN: %clang_cc1 -isystem %S/Inputs %s -fsyntax-only -verify
5 
6 // PR17824: GNU libc uses MS keyword __uptr as an identifier in C mode
7 #include <ms-keyword-system-header.h>
8 
fn()9 void fn() {
10   WS ws;
11   ws.__uptr = 0;
12 #ifdef MS
13   // expected-error@-2 {{expected identifier}}
14 #else
15   // expected-no-diagnostics
16 #endif
17 }
18