repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
plugin
/
diagnostic-test-metadata.c
blob
38ecf0a6d95b923cf2cc01488b58be8255de8a1a
1
/* { dg-do compile } */
2
3
extern
char
*
gets
(
char
*
s
);
4
5
void
test_cwe
(
void
)
6
{
7
char
buf
[
1024
];
8
gets
(
buf
);
/* { dg-warning "never use 'gets' \\\[CWE-242\\\] \\\[STR34-C\\\]" } */
9
}