summaryrefslogtreecommitdiffstats
path: root/test/Sema/format-string-percentm.c
blob: 1ffc439af07a83d39f1a0a1b98d8b0de5a173ee6 (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple i686-pc-linux-gnu

// PR 4142 - support glibc extension to printf: '%m' (which prints strerror(errno)).
int printf(char const*,...);
void percentm(void) {
  printf("%m");
}