brintos

brintos / llvm-project-archived public Read only

0
0
Text · 417 B · d43dc14 Raw
10 lines · cpp
1// RUN: %clang_cc1 -triple=x86_64-linux-gnu -fmodules -fmodules-codegen -emit-module -fmodule-name=foo %S/Inputs/codegen-extern-template.modulemap -x c++ -o %t.pcm2// RUN: %clang_cc1 -triple x86_64-linux-gnu -fmodules -fmodule-file=%t.pcm %s -emit-llvm -o - | FileCheck %s3// expected-no-diagnostics4 5#include "codegen-extern-template.h"6 7template int foo<int>();8 9// CHECK: define weak_odr noundef i32 @_Z3fooIiET_v10