1! REQUIRES: x86-registered-target, amdgpu-registered-target 2! RUN: not %flang -target amdgcn-amd-amdhsa -target-cpu gfx908 -mcode-object-version=3 -S %s -o \ 3! RUN: /dev/null 2>&1 | FileCheck --check-prefix=INVALID_VERSION %s 4 5! RUN: %flang -target x86_64-unknown-linux-gnu -mcode-object-version=3 -S %s -o \ 6! RUN: /dev/null 2>&1 | FileCheck --check-prefix=UNUSED_PARAM %s 7 8! INVALID_VERSION: error: invalid integral value '3' in '-mcode-object-version=3' 9! UNUSED_PARAM: warning: argument unused during compilation: '-mcode-object-version=3' [-Wunused-command-line-argument] 10