aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/class-deduction118.C
blob: 64d814beb7d6c6e70d6047a389950b31ee8de3a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/115207
// { dg-do compile { target c++17 } }

template <class T>
struct A {
  T t;
  constexpr A(T* p): t (p != &t) { }
};

const int i = 42;
constexpr A a = &i;