diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2018-11-06 05:41:33 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2018-11-06 05:41:33 +0000 |
commit | b17ebff627415bdbe37e5c8c1c3926edb1c349ed (patch) | |
tree | 93e2ef0701decbb6e0c9c14c358e09dd7039c84f /clang/test/CodeGen/builtins.c | |
parent | 574caddc0dd2e9303ad347937583d41253a500e6 (diff) | |
download | bcm5719-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.c | 5 |
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"); |