xref: /llvm-project/clang/test/Modules/codegen-extern-template.cpp (revision 1b1c8d83d3567a60280291c0adb95d1d60335509)
1b5b2cf7aSLuboš Luňák // 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
2dbc96b51SFangrui Song // RUN: %clang_cc1 -triple x86_64-linux-gnu -fmodules -fmodule-file=%t.pcm %s -emit-llvm -o - | FileCheck %s
3729530f6SLuboš Luňák // expected-no-diagnostics
4729530f6SLuboš Luňák 
5729530f6SLuboš Luňák #include "codegen-extern-template.h"
6729530f6SLuboš Luňák 
7729530f6SLuboš Luňák template int foo<int>();
8729530f6SLuboš Luňák 
9*1b1c8d83Shyeongyu kim // CHECK: define weak_odr noundef i32 @_Z3fooIiET_v
10