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