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
Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
data-model-path-1.c
blob
d7058ea18e034a181bf7fac686956703ac9394a9
1
#include <stddef.h>
2
3
static int
*
__attribute__
((
noinline
))
4
callee
(
void
)
5
{
6
return
NULL
;
7
}
8
9
void
test_1
(
void
)
10
{
11
int
*
p
=
callee
();
/* { dg-message "return of NULL to 'test_1' from 'callee'" } */
12
*
p
=
42
;
/* { dg-warning "dereference of NULL 'p'" } */
13
}