xref: /llvm-project/clang/test/Modules/asm-goto.c (revision 329ef60f3e21fd6845e8e8b0da405cae7eb27267)
134ca5b33SBill Wendling // RUN: rm -rf %t
234ca5b33SBill Wendling // 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
334ca5b33SBill Wendling // 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
434ca5b33SBill Wendling #include "a.h"
534ca5b33SBill Wendling 
6f97b68efSBill Wendling // CHECK-LABEL: define {{.*}} @foo(
72a721374SNikita Popov // CHECK: callbr {{.*}} "=r,!i{{.*}}()
8*329ef60fSNick Desaulniers // CHECK-NEXT: to label %asm.fallthrough [label %indirect.split]
934ca5b33SBill Wendling 
bar(void)1034ca5b33SBill Wendling int bar(void) {
1134ca5b33SBill Wendling   return foo();
1234ca5b33SBill Wendling }
13