std.cl 362 B

123456789
  1. // RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL
  2. // RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL1.1
  3. // RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL1.2
  4. // RUN: %clang_cc1 %s -fsyntax-only -cl-std=CL2.0
  5. // RUN: not %clang_cc1 %s -fsyntax-only -cl-std=invalid -DINVALID 2>&1 | FileCheck %s
  6. #ifdef INVALID
  7. // CHECK: invalid value 'invalid' in '-cl-std=invalid'
  8. #endif