brintos

brintos / llvm-project-archived public Read only

0
0
Text · 630 B · fb42464 Raw
20 lines · cpp
1// RUN: rm -rf %t2// RUN: mkdir %t3//4// RUN: echo '#pragma once' > %t/a.h5// RUN: echo 'struct A { A() {} int f() const; } const a;' >> %t/a.h6//7// RUN: echo '#include "a.h"' > %t/b.h8//9// RUN: echo 'module M { module b { header "b.h" export * } module a { header "a.h" export * } }' > %t/map10//11// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodule-map-file=%t/map -I%t %s -emit-llvm -o - -triple %itanium_abi_triple | FileCheck %s12 13#include "b.h"14 15// CHECK: @_ZL1a = internal global16// CHECK: call {{.*}} @_ZN1AC1Ev({{.*}}@_ZL1a17// CHECK: call {{.*}} @_ZNK1A1fEv({{.*}}@_ZL1a18// CHECK: store {{.*}} @x19int x = a.f();20