xref: /llvm-project/clang/test/Modules/asm-goto.c (revision 329ef60f3e21fd6845e8e8b0da405cae7eb27267)
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fno-implicit-modules -x c -I%S/Inputs/asm-goto -emit-module %S/Inputs/asm-goto/module.modulemap -fmodule-name=a -o %t/a.pcm
3 // RUN: %clang_cc1 -fmodules -fno-implicit-modules -x c -I%S/Inputs/asm-goto -emit-llvm -o - %s -fmodule-file=%t/a.pcm | FileCheck %s
4 #include "a.h"
5 
6 // CHECK-LABEL: define {{.*}} @foo(
7 // CHECK: callbr {{.*}} "=r,!i{{.*}}()
8 // CHECK-NEXT: to label %asm.fallthrough [label %indirect.split]
9 
bar(void)10 int bar(void) {
11   return foo();
12 }
13