blob: 56916e710cb12cb0a483b66d9555bcffbf907335 [file] [log] [blame]
// 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.pcm
// RUN: %clang_cc1 -triple x86_64-linux-gnu -fmodules -fmodule-file=%t.pcm %s -emit-llvm -o - | FileCheck %s
// expected-no-diagnostics
#include "codegen-extern-template.h"
template int foo<int>();
// CHECK: define weak_odr i32 @_Z3fooIiET_v