aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c
blob: 2d581283474453cebbdc662ea2ce48180c41d9a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
  { dg-options "-fplugin-arg-location_overflow_plugin-value=0x60000001" }
  { dg-do preprocess }
*/

#include "location-overflow-test-pr83173.h"

int
main ()
{
  return 0;
}

/*
  The preprocessor output should contain
  '# 1 "path/to/location-overflow-test-pr83173-1.h" 1', but should not
  contain any other references to location-overflow-test-pr83183-1.h.

  { dg-final { scan-file location-overflow-test-pr83173.i "# 1 \[^\r\n\]+location-overflow-test-pr83173-1\.h\" 1" } }
  { dg-final { scan-file-not location-overflow-test-pr83173.i "# (?!1 \[^\r\n\]+location-overflow-test-pr83173-1\.h\" 1)\[0-9\]+ \[^\r\n\]+location-overflow-test-pr83173-1\.h\"" } }
*/