[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Driver / override-triple.ll
blobf2d9f47ac8f0aed034f79ff9ca4b30a617391c8b
1 ; Verify that the module triple is overridden by the driver - even in the presence
2 ; of a module triple.
3 ; NOTE: At the time of writing, the tested behaviour was consistent with Clang
5 ; RUN: %flang_fc1 -S %s -o - 2>&1 | FileCheck %s
6 ; RUN: %flang -S  %s -o - 2>&1 | FileCheck %s
8 ; CHECK: warning: overriding the module target triple with {{.*}}
10 ; For the triple to be overridden by the driver, it needs to be different to the host triple.
11 ; Use a random string to guarantee that.
12 target triple = "invalid-triple"
14 define void @foo() {
15   ret void