llvm-for-llvmta/tools/clang/test/Sema/format-string-percentm.c

9 lines
252 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple i686-pc-linux-gnu
// expected-no-diagnostics
// PR 4142 - support glibc extension to printf: '%m' (which prints strerror(errno)).
int printf(char const*,...);
void percentm(void) {
printf("%m");
}