#include <iostream>

class Test {
public:
  constexpr Test(int i) : i(i) { }
  constexpr int get() { return i; };
private:
  int i;
};

constexpr int test()
{
  return 1;
}

int main() {
  int x = 0;

  constexpr Test y = Test(4);

  switch (x) {
  case test(): // this is OK
    break;
  case y.get(): // not working
    break;
  }
  
  std::cout << "This is the end!" << std::endl;
  return 0;
}