1 // RUN: %clang_cc1 -std=c++1z %s -emit-llvm -o - | FileCheck %s --implicit-check-not=should_not_be_used 2 3 void should_be_used_1(); 4 void should_be_used_2(); 5 void should_not_be_used(); 6 void f() { 7 if constexpr (false) 8 should_not_be_used(); 9 else 10 should_be_used_1(); 11 12 if constexpr (true || ({ label: false; })) 13 should_be_used_2(); 14 else { 15 goto foo; 16 foo: should_not_be_used(); 17 } 18 } 19 20 // CHECK: should_be_used_1 21 // CHECK: should_be_used_2 22