summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr36901-4.c
blob: f1d261657af73fa9e51c4edc901c80b18b8132d6 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-pedantic-errors -Wsystem-headers" } */
#include "pr36901-system.h"
void foo(void)
{
  int s = sc;
}
/* { dg-message "from " "In file included" { target *-*-* } 0 } */
/* { dg-error "ordered comparison of pointer with integer zero" "pedantic error" { target *-*-* } 0 } */