xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/Inputs/warn-unreachable.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // Test that this unreachable code warning is
2*0a6a1f1dSLionel Sambuc // not reported because it is in a header.
3*0a6a1f1dSLionel Sambuc 
foo_unreachable_header()4*0a6a1f1dSLionel Sambuc void foo_unreachable_header() {
5*0a6a1f1dSLionel Sambuc   return;
6*0a6a1f1dSLionel Sambuc   foo_unreachable_header(); // no-warning
7*0a6a1f1dSLionel Sambuc }