summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wunknownprag.c
blob: c5ba58f767dbc2637913f298449bc81f063d25ea (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Copyright (C) 2002 Free Software Foundation, Inc.  */

/* { dg-do compile } */
/* { dg-options "-Wunknown-pragmas" } */

/* We used to get "unspellable token: CPP_EOF" warnings.  */

#pragma				/* { dg-warning "ignoring #pragma" } */
#pragma ~			/* { dg-warning "ignoring #pragma" } */
#pragma baz			/* { dg-warning "ignoring #pragma" } */
#pragma baz baz			/* { dg-warning "ignoring #pragma" } */