Richard Smith | c91daf1 | 2017-02-14 22:44:20 +0000 | [diff] [blame] | 1 | // This file checks output given when processing OpenCL files. |
| 2 | // When user selects invalid language standard |
| 3 | // print out supported values with short description. |
| 4 | |
| 5 | // RUN: not %clang %s -std=foobar -c 2>&1 | \ |
| 6 | // RUN: FileCheck --match-full-lines %s |
| 7 | |
| 8 | // CHECK: error: invalid value 'foobar' in '-std=foobar' |
Richard Smith | 8c8fb80 | 2017-04-27 01:17:05 +0000 | [diff] [blame] | 9 | // CHECK-NEXT: note: use 'cl1.0' for 'OpenCL 1.0' standard |
Richard Smith | c91daf1 | 2017-02-14 22:44:20 +0000 | [diff] [blame] | 10 | // CHECK-NEXT: note: use 'cl1.1' for 'OpenCL 1.1' standard |
| 11 | // CHECK-NEXT: note: use 'cl1.2' for 'OpenCL 1.2' standard |
| 12 | // CHECK-NEXT: note: use 'cl2.0' for 'OpenCL 2.0' standard |
| 13 | |
| 14 | // Make sure that no other output is present. |
| 15 | // CHECK-NOT: {{^.+$}} |
| 16 | |