summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/builtin1.C
blob: a5b7271cb73de8a52e83b3877457bef93327a0ad (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/26559

template<bool> struct cond;

template<int> struct S {
  void f(int i) {
    cond<__builtin_constant_p(i)>();
  }
};

S<1> s;