summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-typedef1.C
blob: 2719e3aea12a32c06d28851642aba63f2b881e6c (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/50508
// { dg-options -std=c++0x }

template <class T>
  struct integral_constant {
    typedef T value_type;
    constexpr operator value_type() { return true; }
  };

static constexpr bool value = integral_constant<bool>()
                              && true;