Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm-only -verify |
Eli Friedman | bb4a33c | 2009-11-09 03:59:26 +0000 | [diff] [blame] | 2 | |
3 | struct F { | ||||
4 | void (*x)(); | ||||
5 | }; | ||||
6 | void G(); | ||||
7 | template<class T> class A { | ||||
John McCall | 7002f4c | 2010-04-09 19:03:51 +0000 | [diff] [blame^] | 8 | public: A(); |
Eli Friedman | bb4a33c | 2009-11-09 03:59:26 +0000 | [diff] [blame] | 9 | }; |
10 | template<class T> A<T>::A() { | ||||
11 | static F f = { G }; | ||||
12 | } | ||||
13 | A<int> a; |