aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/format-strings.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-01-08 05:28:38 +0000
committerTed Kremenek <kremenek@apple.com>2011-01-08 05:28:38 +0000
commitbd18d4584aae0ed6f7111ef5713784cf29fe663f (patch)
tree6a18805b7e708ea0f35198955901c71bb52da059 /test/Sema/format-strings.c
parent0574c78c5a9d1258b3584ad04596e85aaa6c6f8b (diff)
Add printf format string parsing support for '
prefix to format conversions (POSIX extension). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings.c')
-rw-r--r--test/Sema/format-strings.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/format-strings.c b/test/Sema/format-strings.c
index c51dafdae5..93b6eb52b2 100644
--- a/test/Sema/format-strings.c
+++ b/test/Sema/format-strings.c
@@ -331,3 +331,9 @@ void pr8641() {
printf("%#x\n", 10);
printf("%#X\n", 10);
}
+
+void posix_extensions() {
+ // Test %'d, "thousands grouping".
+ // <rdar://problem/8816343>
+ printf("%'d\n", 123456789); // no-warning
+}