repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wzero-as-null-pointer-constant-7.C
blob
571a4cf4c83f68ce2e0ea3147bafe34eab81dd0f
1
// { dg-options "-Wzero-as-null-pointer-constant" }
2
// { dg-do compile { target c++11 } }
3
4
#include <cstddef>
5
6
void test01()
7
{
8
char* x(NULL);
9
char* x2{NULL};
10
char* x3 = NULL;
11
char* x4(0); // { dg-warning "12: zero as null pointer" }
12
char* x5 = 0; // { dg-warning "14: zero as null pointer" }
13
}