summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-enum.cpp
blob: 6f9aa4b116d75dc205eeac03d5aa57bc4fb2fe57 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -fsyntax-only %s

template<typename T, T I, int J>
struct adder {
  enum {
    value = I + J,
    value2
  };
};

int array1[adder<long, 3, 4>::value == 7? 1 : -1];
OpenPOWER on IntegriCloud