diff options
Diffstat (limited to 'test/Driver/cuda-output-asm.cu')
-rw-r--r-- | test/Driver/cuda-output-asm.cu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Driver/cuda-output-asm.cu b/test/Driver/cuda-output-asm.cu index af62478ac27e..8ca87a5caa5c 100644 --- a/test/Driver/cuda-output-asm.cu +++ b/test/Driver/cuda-output-asm.cu @@ -1,4 +1,4 @@ -// Tests CUDA compilation with -S. +// Tests CUDA compilation with -S and -emit-llvm. // REQUIRES: clang-driver // REQUIRES: x86-registered-target @@ -26,4 +26,8 @@ // RUN: %clang -### -S -target x86_64-linux-gnu --cuda-device-only \ // RUN: --cuda-gpu-arch=sm_20 --cuda-gpu-arch=sm_30 -o foo.s %s 2>&1 \ // RUN: | FileCheck -check-prefix MULTIPLE-OUTPUT-FILES %s +// RUN: %clang -### -emit-llvm -c -target x86_64-linux-gnu -o foo.s %s 2>&1 \ +// RUN: | FileCheck -check-prefix MULTIPLE-OUTPUT-FILES %s // MULTIPLE-OUTPUT-FILES: error: cannot specify -o when generating multiple output files +// Make sure we do not get duplicate diagnostics. +// MULTIPLE-OUTPUT-FILES-NOT: error: cannot specify -o when generating multiple output files |