clang/test/CIR/Lowering/module-asm.cir
raw| 1 | // RUN: cir-opt %s -cir-to-llvm -o %t.cir |
| 2 | // RUN: FileCheck %s --input-file=%t.cir |
| 3 | |
| 4 | // RUN: cir-translate -cir-to-llvmir --disable-cc-lowering -o %t.ll %s |
| 5 | // RUN: FileCheck -check-prefix=LLVM --input-file=%t.ll %s |
| 6 | |
| 7 | // CHECK: llvm.module_asm = [".globl bar", ".globl foo"] |
| 8 | // LLVM: module asm ".globl bar" |
| 9 | // LLVM: module asm ".globl foo" |
| 10 | module attributes {cir.module_asm = [".globl bar", ".globl foo"]} { |
| 11 | } |