Fix regression in -Wreturn-type caused by not
[clang.git] / test / SemaCXX / return-noreturn.cpp
blob5045d1b4c3d3cca0d64de84c81fd3c98b2d5af5c
1 // RUN: %clang_cc1 %s -fsyntax-only -verify -Wreturn-type -Wno-unreachable-code
3 // <rdar://problem/8875247> - Properly handle CFGs with destructors.
4 struct rdar8875247 {
5 ~rdar8875247 ();
6 };
7 void rdar8875247_aux();
9 int rdar8875247_test() {
10 rdar8875247 f;
11 } // expected-warning{{control reaches end of non-void function}}