brintos

brintos / llvm-project-archived public Read only

0
0
Text · 768 B · 61a30d5 Raw
14 lines · cpp
1// Test that we disallow -cc1 -fsycl, even when specifying device or host mode.2 3// RUN: not %clang_cc1 -fsycl %s 2>&1 | FileCheck --check-prefix=ERROR %s4// RUN: not %clang_cc1 -fsycl -fsycl-is-device %s 2>&1 | FileCheck --check-prefix=ERROR %s5// RUN: not %clang_cc1 -fsycl -fsycl-is-host %s 2>&1 | FileCheck --check-prefix=ERROR %s6 7// ERROR: error: unknown argument: '-fsycl'8 9// Test that you cannot specify -fsycl-is-device and -fsycl-is-host at the same time.10// RUN: not %clang_cc1 -fsycl-is-device -fsycl-is-host %s 2>&1 | FileCheck --check-prefix=ERROR-BOTH %s11// RUN: not %clang_cc1 -fsycl-is-host -fsycl-is-device %s 2>&1 | FileCheck --check-prefix=ERROR-BOTH %s12 13// ERROR-BOTH: error: invalid argument '-fsycl-is-device' not allowed with '-fsycl-is-host'14