| 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 |
| 6 |
|
| 7 |
//--- compare |
| 8 |
#pragma GCC visibility push(default) |
| 9 |
#pragma GCC visibility pop |
| 10 |
|
| 11 |
//--- bz0.h |
| 12 |
#include "compare" |
| 13 |
// expected-no-diagnostics |
| 14 |
|
| 15 |
//--- bz.cpp |
| 16 |
#include "compare" |
| 17 |
|
| 18 |
import "bz0.h"; // expected-warning {{the implementation of header units is in an experimental phase}} |