summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/this-targ1.C
blob: 6864be5abbc30a87cad11bad86fd1dbfe023f917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// PR c++/47904

template <bool>
struct S
{
};

template <class T>
class U
{
  T t;
  int foo () const
  {
    S <sizeof (t) == 1> s;
    return 1;
  }
  int bar () const
  {
    S <sizeof (t) == 1> s;
    return 1;
  }
};