summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/cmdlne-M-2.c
blob: 6479822f9631530302b6669ea94cbd6fc8ae7f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright (C) 2008 Free Software Foundation, Inc.  */

/* { dg-do preprocess } */
/* { dg-options "-M" } */

/* Test that dependency output suppresses warnings by implying -w.  */

#include "#cmdlne-M-2.h"
#include "cmdlne-M-2#.h"

/* { dg-final { scan-file cmdlne-M-2.i "(^|\\n)cmdlne-M-2.o:" } }
   { dg-final { scan-file cmdlne-M-2.i "cmdlne-M-2.c" } }
   { dg-final { scan-file cmdlne-M-2.i "\\\\#cmdlne-M-2.h" } }
   { dg-final { scan-file cmdlne-M-2.i "cmdlne-M-2\\\\#.h" } } */