aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/static1.C
blob: 2e61337d9d1ba5ea7a3ad4210acf7f7804e98e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/84582
// { dg-do compile { target c++17 } }

class C {
  static inline const long b = 0;
  static inline const unsigned c = (b);
};
class D {
  static inline const long b = 0;
  static inline const unsigned c = b;
};
template <class> class A {
  static inline const long b = 0;
  static inline const unsigned c = (b);
};
template <class> class B {
  static inline const long b = 0;
  static inline const unsigned c = b;
};