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