Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / member-templates.cpp
blobeaab798a1dc39627e0baa33f4a74b19f53e103a7
1 // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
3 // CHECK: ; ModuleID
4 struct A {
5 template<typename T>
6 A(T);
7 };
9 template<typename T> A::A(T) {}
11 struct B {
12 template<typename T>
13 B(T);
16 template<typename T> B::B(T) {}
18 // CHECK-LABEL: define weak_odr void @_ZN1BC2IiEET_(ptr {{[^,]*}} %this, i32 noundef %0) unnamed_addr
19 // CHECK-LABEL: define weak_odr void @_ZN1BC1IiEET_(ptr {{[^,]*}} %this, i32 noundef %0) unnamed_addr
20 template B::B(int);
22 template<typename T>
23 struct C {
24 void f() {
25 int a[] = { 1, 2, 3 };
29 void f(C<int>& c) {
30 c.f();