[flang][cuda] Do not register global constants (#118582)
[llvm-project.git] / clang / test / Headers / import_header_unit_after_pragma.cpp
blobb1ad3b07fea29cc6d88314dacd7b4e3c0292e48c
1 // RUN: rm -fR %t
2 // RUN: split-file %s %t
3 // RUN: cd %t
4 // RUN: %clang_cc1 -verify -std=c++20 -emit-header-unit -xc++-user-header bz0.h
5 // RUN: %clang_cc1 -verify -std=c++20 -emit-header-unit -xc++-user-header -fmodule-file=bz0.pcm bz.cpp
7 //--- compare
8 #pragma GCC visibility push(default)
9 #pragma GCC visibility pop
11 //--- bz0.h
12 #include "compare"
13 // expected-no-diagnostics
15 //--- bz.cpp
16 #include "compare"
18 import "bz0.h"; // expected-warning {{the implementation of header units is in an experimental phase}}