aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/constant-strings.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/constant-strings.m')
-rw-r--r--test/CodeGenObjC/constant-strings.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGenObjC/constant-strings.m b/test/CodeGenObjC/constant-strings.m
index d4fefd903653..82cd916b5ca8 100644
--- a/test/CodeGenObjC/constant-strings.m
+++ b/test/CodeGenObjC/constant-strings.m
@@ -1,4 +1,6 @@
-// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s
+// RUN: clang-cc -fnext-runtime -emit-llvm -o %t %s &&
+// RUN: clang-cc -fgnu-runtime -emit-llvm -o %t %s && grep NXConstantString %t | count 1 &&
+// RUN: clang-cc -fgnu-runtime -fconstant-string-class=NSConstantString -emit-llvm -o %t %s && grep NSConstantString %t | count 1
id a = @"Hello World!";