xref: /llvm-project/clang/test/APINotes/export-as.c (revision 7c1d9b15eee3a34678addab2bab66f3020ac0753)
1 // RUN: rm -rf %t && mkdir -p %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache -fdisable-module-hash -fapinotes-modules -I %S/Inputs/Headers %s -ast-dump -ast-dump-filter globalInt -x c | FileCheck %s
3 
4 #include "ExportAs.h"
5 
6 // CHECK: Dumping globalInt:
7 // CHECK: VarDecl {{.+}} imported in ExportAsCore globalInt 'int'
8 // CHECK: UnavailableAttr {{.+}} <<invalid sloc>> "oh no"
9