summaryrefslogtreecommitdiff
path: root/test/SemaOpenCL/str_literals.cl
blob: da665c3fd130728629463625e0f56d743193b435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 %s -verify
// expected-no-diagnostics

constant char * __constant x = "hello world";

void foo(__constant char * a) {

}

void bar() {
  foo("hello world");
  foo(x);
}