aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/return-noreturn.cpp
blob: 5045d1b4c3d3cca0d64de84c81fd3c98b2d5af5c (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 %s -fsyntax-only -verify -Wreturn-type -Wno-unreachable-code

// <rdar://problem/8875247> - Properly handle CFGs with destructors.
struct rdar8875247 {
  ~rdar8875247 ();
};
void rdar8875247_aux();

int rdar8875247_test() {
  rdar8875247 f;
} // expected-warning{{control reaches end of non-void function}}