[TySan] Don't report globals with incomplete types. (#121922)
[llvm-project.git] / clang / test / APINotes / export-as.c
blob24d9338e2993496c9e7e01f04ee105e55646e24b
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
4 #include "ExportAs.h"
6 // CHECK: Dumping globalInt:
7 // CHECK: VarDecl {{.+}} imported in ExportAsCore globalInt 'int'
8 // CHECK: UnavailableAttr {{.+}} <<invalid sloc>> "oh no"