xref: /llvm-project/flang/test/Driver/missing-triple.ll (revision 9d4a2baaa2c304066199ec6644da80aca7638dc6)
1; Verify that the module triple is overridden by the driver - even when the
2; module triple is missing.
3; NOTE: At the time of writing, the tested behaviour was consistent with Clang
4
5; RUN: %flang_fc1 -S %s -o - 2>&1 | FileCheck %s
6; RUN: %flang -S  %s -o - 2>&1 | FileCheck %s
7
8; CHECK: warning: overriding the module target triple with {{.*}}
9
10define void @foo() {
11  ret void
12}
13