xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/debug-line-1.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -o - -emit-llvm -g %s | FileCheck %s
2 // REQUIRES: asserts
3 // PR9796
4 
5 // Check to make sure that we emit the block for the break so that we can count the line.
6 // CHECK: sw.bb:                                            ; preds = %entry
7 // CHECK: br label %sw.epilog, !dbg !
8 
9 extern int atoi(const char *);
10 
f(char * arg)11 int f(char* arg) {
12   int x = atoi(arg);
13 
14   switch(x) {
15     case 1:
16       break;
17   }
18 
19   return 0;
20 }
21