| // Test default argument instantiation in chained PCH. |
| // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -include %s -include %s %s |
| // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s -chain-include %s -chain-include %s |
| // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -fmodules %s -chain-include %s -chain-include %s |
| // expected-no-diagnostics |
| //===----------------------------------------------------------------------===// |
| template<typename T> int f(T t) { |
| extern T rdar23810407_variable; |
| template<typename T> int g(int a = f([] {})); |
| //===----------------------------------------------------------------------===// |
| #elif not defined(HEADER2) |
| #error Header inclusion order messed up |
| //===----------------------------------------------------------------------===// |
| inline void instantiate_once() { |
| //===----------------------------------------------------------------------===// |
| //===----------------------------------------------------------------------===// |
| //===----------------------------------------------------------------------===// |