summaryrefslogtreecommitdiff
path: root/regress/gnu/egcs/gcc-bounds/snprintf-2.cpp
blob: cd776e3c46727f2153e8de9209f8d53689b69da0 (plain)
1
2
3
4
5
6
7
#include <stdio.h>

int main(int argc, char **argv) {
	char buf[20];
	snprintf(buf, sizeof(buf) + 10, "%s", "foo");
	return 1;
}