summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/instantiate-init-list.cpp
blob: 676d2994e7ed499543f6aee86435959e049121c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 %s -emit-llvm-only -verify

struct F {
  void (*x)();
};
void G();
template<class T> class A {
  A();
};
template<class T> A<T>::A() {
  static F f = { G };
}
A<int> a;
OpenPOWER on IntegriCloud