1 // Check any combination of delayed-template-parsing between PCH and TU works.
2 // RUN: %clang_cc1 %s -emit-pch -o %t.pch
3 // RUN: %clang_cc1 -fdelayed-template-parsing %s -emit-pch -o %t.delayed.pch
4 // RUN: %clang_cc1 -DMAIN_FILE -include-pch %t.pch %s
5 // RUN: %clang_cc1 -DMAIN_FILE -fdelayed-template-parsing -include-pch %t.pch %s
6 // RUN: %clang_cc1 -DMAIN_FILE -include-pch %t.delayed.pch %s
7 // RUN: %clang_cc1 -DMAIN_FILE -fdelayed-template-parsing -include-pch %t.delayed.pch %s
8
9 #ifndef MAIN_FILE
10 template <typename T>
successor(T Value)11 T successor(T Value) { return Value + 1; }
12 #else
13 int x = successor(42);
14 #endif
15