[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / SemaOpenCL / predefined-expr.cl
blob5b219d3009f080e965e4273a13830e347f62c9d5
1 // RUN: %clang_cc1 %s -verify
2 // RUN: %clang_cc1 %s -verify -cl-std=CL2.0
4 void f() {
5 char *f1 = __func__; //expected-error-re{{initializing '{{__generic|__private}} char *__private' with an expression of type 'const __constant char *' changes address space of pointer}}
6 constant char *f2 = __func__; //expected-warning{{initializing '__constant char *__private' with an expression of type 'const __constant char[2]' discards qualifiers}}
7 constant const char *f3 = __func__;