summaryrefslogtreecommitdiff
path: root/test/SemaCXX/return.cpp
blob: e682fdfb500921dfec01f8356376f588e9038443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;
}