view gcc/testsuite/g++.dg/warn/pr33160.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// PR 33160
// { dg-do compile }
// { dg-options "-Wall -Wextra -Wpointer-arith -pedantic -Wconversion" }

typedef int __attribute__((mode(pointer))) intptr_t;
int foo(void)
{
 intptr_t t = 0;
 if (t != ((intptr_t)__null)) t = 1;
 return 0;
}