summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/amdgcn-string-literal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/amdgcn-string-literal.cpp')
-rw-r--r--test/CodeGenCXX/amdgcn-string-literal.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGenCXX/amdgcn-string-literal.cpp b/test/CodeGenCXX/amdgcn-string-literal.cpp
index 70be249433..3148077165 100644
--- a/test/CodeGenCXX/amdgcn-string-literal.cpp
+++ b/test/CodeGenCXX/amdgcn-string-literal.cpp
@@ -14,7 +14,7 @@ void g(const char* p);
// CHECK-LABEL: define void @_Z1fv()
void f() {
const char* l_str = "l_str";
-
+
// CHECK: call void @llvm.memcpy.p0i8.p4i8.i64
char l_array[] = "l_array";
@@ -26,3 +26,9 @@ void f() {
const char* p = g_str;
g(p);
}
+
+// CHECK-LABEL: define void @_Z1ev
+void e() {
+ g("string literal");
+ g("string literal");
+}