brintos

brintos / llvm-project-archived public Read only

0
0
Text · 828 B · 3570515 Raw
20 lines · plain
1// This file checks output given when processing OpenCL files.2// When user selects invalid language standard3// print out supported values with short description.4 5// RUN: not %clang %s -std=foobar -c 2>&1 | \6// RUN: FileCheck --match-full-lines %s7 8// CHECK: error: invalid value 'foobar' in '-std=foobar'9// CHECK-NEXT: note: use 'cl1.0' for 'OpenCL 1.0' standard10// CHECK-NEXT: note: use 'cl1.1' for 'OpenCL 1.1' standard11// CHECK-NEXT: note: use 'cl1.2' for 'OpenCL 1.2' standard12// CHECK-NEXT: note: use 'cl2.0' for 'OpenCL 2.0' standard13// CHECK-NEXT: note: use 'cl3.0' for 'OpenCL 3.0' standard14// CHECK-NEXT: note: use 'clc++1.0' or 'clc++' for 'C++ for OpenCL 1.0' standard15// CHECK-NEXT: note: use 'clc++2021' for 'C++ for OpenCL 2021' standard16 17// Make sure that no other output is present.18// CHECK-NOT: {{^.+$}}19 20