diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2012-08-15 20:02:54 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2012-08-15 20:02:54 +0000 |
| commit | 56d91b49b13fe55c918afbda19f6165b5fbff87a (patch) | |
| tree | 9abb1a658a297776086f4e0dfa6ca533de02104e /test/CodeGenCXX/destructors.cpp | |
| parent | 41e20f564abdb05101d6b2b29c59459a966c22cc (diff) | |
Notes
Diffstat (limited to 'test/CodeGenCXX/destructors.cpp')
| -rw-r--r-- | test/CodeGenCXX/destructors.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGenCXX/destructors.cpp b/test/CodeGenCXX/destructors.cpp index d9962e615ec5..d665445f959e 100644 --- a/test/CodeGenCXX/destructors.cpp +++ b/test/CodeGenCXX/destructors.cpp @@ -350,6 +350,22 @@ namespace test8 { // CHECK: unreachable } +// PR12710 +namespace test9 { + struct ArgType { + ~ArgType(); + }; + template<typename T> + void f1(const ArgType& = ArgType()); + void f2(); + void bar() { + f1<int>(); + f2(); + } + // CHECK: call void @_ZN5test97ArgTypeD1Ev(%"struct.test9::ArgType"* % + // CHECK: call void @_ZN5test92f2Ev() +} + // Checks from test3: // CHECK: define internal void @_ZN5test312_GLOBAL__N_11DD0Ev(%"struct.test3::<anonymous namespace>::D"* %this) unnamed_addr |
