fork download
  1. #include <iostream>
  2. using namespace std;
  3. struct Test {
  4. constexpr static int x = 1;
  5. };
  6. int test(const Test& t) {
  7. return t.x;
  8. }
  9. int main() {
  10. Test x;
  11. cout << test(x);
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5660KB
stdin
Standard input is empty
stdout
1