view gcc/testsuite/gcc.dg/plugin/location-overflow-test-pr83173.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
line wrap: on
line source

/*
  { 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\"" } }
*/