[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Preprocessor / pragma-missing-string-token.c
blob5f40b2f4fdb97749034d1eb05bb761fd111530f4
1 // RUN: rm -rf %t
2 // RUN: split-file %s %t
4 // RUN: %clang_cc1 -emit-module -x c -fmodules -I %t/Inputs -fmodule-name=aa %t/Inputs/module.modulemap -o %t/aa.pcm
5 // RUN: rm %t/Inputs/b.h
6 // RUN: not %clang_cc1 -E -fmodules -I %t/Inputs -fmodule-file=%t/aa.pcm %s -o - -fallow-pcm-with-compiler-errors 2>&1 | FileCheck %s
8 //--- Inputs/module.modulemap
9 module aa {
10 header "a.h"
11 header "b.h"
14 //--- Inputs/a.h
15 #define TEST(x) x
17 //--- Inputs/b.h
18 #define SUB "mypragma"
20 //--- test.c
21 #include "a.h"
23 _Pragma(SUB);
24 int a = TEST(SUB);
26 // CHECK: int a
27 // CHECK: 1 error generated