29 lines · c
1// RUN: %clang_cc1 -O1 -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s2 3#define M if (x) goto L1;4#define M10 M M M M M M M M M M5#define M100 M10 M10 M10 M10 M10 M10 M10 M10 M10 M106#define M1000 M100 M100 M100 M100 M100 M100 M100 M100 M100 M1007 8void f(int x) {9 int h;10 11 // Many gotos to not-yet-emitted labels would cause EHScope's FixupDepth12 // to overflow (PR23490).13 M1000 M1000 M100014 15 if (x == 5) {16 // This will cause us to emit a clean-up of the stack variable. If the17 // FixupDepths are broken, fixups will erroneously get threaded through it.18 int i;19 }20 21L1:22 return;23}24 25// CHECK-LABEL: define {{(dso_local )?}}void @f26// CHECK-NOT: cleanup27// CHECK: {{^!0 = }}28// We might see 'cleanup' as part of a pathname or versioning in metadata29