summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins.c
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2018-11-06 05:41:33 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2018-11-06 05:41:33 +0000
commitb17ebff627415bdbe37e5c8c1c3926edb1c349ed (patch)
tree93e2ef0701decbb6e0c9c14c358e09dd7039c84f /clang/test/CodeGen/builtins.c
parent574caddc0dd2e9303ad347937583d41253a500e6 (diff)
downloadbcm5719-llvm-b17ebff627415bdbe37e5c8c1c3926edb1c349ed.tar.gz
bcm5719-llvm-b17ebff627415bdbe37e5c8c1c3926edb1c349ed.zip
os_log: Minor code cleanups. NFC.
Also, add a new test case and fix an incorrect comment. llvm-svn: 346209
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
-rw-r--r--clang/test/CodeGen/builtins.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c
index 6ca3c414cf3..829f725617f 100644
--- a/clang/test/CodeGen/builtins.c
+++ b/clang/test/CodeGen/builtins.c
@@ -440,7 +440,10 @@ void test_builtin_os_log(void *buf, int i, const char *data) {
// CHECK: call void @__os_log_helper_1_2_1_8_34(
__builtin_os_log_format(buf, "%{ xyz, public }s", "abc");
- // The last privacy annotation in the string wins.
+ // CHECK: call void @__os_log_helper_1_3_1_8_33(
+ __builtin_os_log_format(buf, "%{ xyz, private }s", "abc");
+
+ // The strictest privacy annotation in the string wins.
// CHECK: call void @__os_log_helper_1_3_1_8_33(
__builtin_os_log_format(buf, "%{ private, public, private, public}s", "abc");
OpenPOWER on IntegriCloud