2020-09-24 10:09:10 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// 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
|
|
|
|
// 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
|
|
|
|
#include "a.h"
|
|
|
|
|
2020-09-25 05:34:08 +08:00
|
|
|
// CHECK-LABEL: define {{.*}} @foo(
|
2022-01-12 03:32:35 +08:00
|
|
|
// CHECK: callbr {{.*}} "=r,i{{.*}} blockaddress(@foo, %indirect))
|
2020-09-24 10:09:10 +08:00
|
|
|
// CHECK-NEXT: to label %asm.fallthrough [label %indirect]
|
|
|
|
|
|
|
|
int bar(void) {
|
|
|
|
return foo();
|
|
|
|
}
|