blob: 265d81dd352a6a4940c94a470af732a975cc96ec [file] [log] [blame]
Reid Klecknere07140e2015-04-15 01:08:06 +00001// RUN: %clang_cc1 -std=c++14 %s -triple=x86_64-linux -emit-llvm -o - | FileCheck %s
2
3struct f {
4 void operator()() const {}
5};
6
7template <typename T> auto vtemplate = f{};
8
9int main() { vtemplate<int>(); }
10
11// CHECK: @_Z9vtemplateIiE = linkonce_odr global %struct.f undef, comdat
12
13// CHECK: define i32 @main()
14// CHECK: call void @_ZNK1fclEv(%struct.f* @_Z9vtemplateIiE)