summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/throw-expressions.cpp
blob: 9449618f2f2c360cd16079fe9a32fe4f608354d2 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -emit-llvm-only -verify %s

int val = 42;
int& test1() {
  return throw val, val;
}

int test2() {
  return val ? throw val : val;
}