| 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 |
|
| 10 |
int bar(void) { |
| 11 |
return foo(); |
| 12 |
} |