fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f(int, const int (&)[2] = {}) { } // #1
  5. void test() {
  6. const int x = 17;
  7. auto g = [](auto a) {
  8. f(x); // OK: calls #1, does not capture x
  9. };
  10. }
  11.  
  12. int main() {
  13. // your code goes here
  14. return 0;
  15. }
Success #stdin #stdout 0s 3408KB
stdin
Standard input is empty
stdout
Standard output is empty