You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
409 B
10 lines
409 B
// 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
|