mirror of
https://github.com/opnsense/src.git
synced 2026-02-21 00:40:33 -05:00
18 lines
219 B
C++
18 lines
219 B
C++
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
|
|
|
int test1() {
|
|
throw;
|
|
}
|
|
|
|
// PR5071
|
|
template<typename T> T f() { }
|
|
|
|
template<typename T>
|
|
void g(T t) {
|
|
return t * 2; // okay
|
|
}
|
|
|
|
template<typename T>
|
|
T h() {
|
|
return 17;
|
|
}
|