brintos

brintos / llvm-project-archived public Read only

0
0
Text · 680 B · fced264 Raw
24 lines · cpp
1// RUN: rm -rf %t2// RUN: split-file %s %t3//4// RUN: %clang_cc1 -std=c++20 -emit-header-unit -xc++-user-header \5// RUN:  %t/a.h -o %t/a.pcm6// RUN: %clang_cc1 -std=c++20 -emit-header-unit -xc++-user-header \7// RUN:  %t/b.h -o %t/b.pcm -fmodule-file=%t/a.pcm8// RUN: echo "#define A2 44" >> %t/a.h9// RUN: %clang_cc1 -std=c++20 -emit-header-unit -xc++-user-header \10// RUN:  %t/a.h -o %t/a.v1.pcm11// RUN: %clang_cc1 -std=c++20 -emit-header-unit -xc++-user-header \12// RUN:  %t/b.h -o %t/b.v1.pcm -fmodule-file=%t/a.v1.pcm13// RUN: not diff %t/b.pcm %t/b.v1.pcm &> /dev/null14 15//--- a.h16#pragma once17#define A 4318 19//--- b.h20#pragma once21import "a.h";22#define B 4323const int a = A;24