blob: e498d2476c0153bd169f78a11275319f9e1fbeee [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -emit-llvm-only -verify
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Eli Friedmanbb4a33c2009-11-09 03:59:26 +00003
4struct F {
5 void (*x)();
6};
7void G();
8template<class T> class A {
John McCall7002f4c2010-04-09 19:03:51 +00009public: A();
Eli Friedmanbb4a33c2009-11-09 03:59:26 +000010};
11template<class T> A<T>::A() {
12 static F f = { G };
13}
14A<int> a;