xref: /llvm-project/clang/test/CodeGen/loop-info-asan.c (revision adc402bf3d0565ac2bc7efbdd05f0d846e818041)
1 // RUN: %clang_cc1 -triple x86_64 -emit-llvm %s -o /dev/null
2 
3 // This test should not exhibit use-after-free in LoopInfo.
4 
a(void)5 int a(void) {
6   for (;;)
7     for (;;)
8       for (;;)
9         for (;;)
10           for (;;)
11             for (;;)
12               for (;;)
13                 for (;;)
14                   for (;;)
15                     ;
16 }
17