You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
604 B
15 lines
604 B
4 months ago
|
// Check any combination of delayed-template-parsing between PCH and TU works.
|
||
|
// RUN: %clang_cc1 %s -emit-pch -o %t.pch
|
||
|
// RUN: %clang_cc1 -fdelayed-template-parsing %s -emit-pch -o %t.delayed.pch
|
||
|
// RUN: %clang_cc1 -DMAIN_FILE -include-pch %t.pch %s
|
||
|
// RUN: %clang_cc1 -DMAIN_FILE -fdelayed-template-parsing -include-pch %t.pch %s
|
||
|
// RUN: %clang_cc1 -DMAIN_FILE -include-pch %t.delayed.pch %s
|
||
|
// RUN: %clang_cc1 -DMAIN_FILE -fdelayed-template-parsing -include-pch %t.delayed.pch %s
|
||
|
|
||
|
#ifndef MAIN_FILE
|
||
|
template <typename T>
|
||
|
T successor(T Value) { return Value + 1; }
|
||
|
#else
|
||
|
int x = successor(42);
|
||
|
#endif
|