view gcc/testsuite/gcc.dg/cpp/macro-exp-tracking-3.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/*
  { dg-options "-fshow-column -ftrack-macro-expansion=1" }
  { dg-do compile }
 */

#define SQUARE(A) A * A	 /* { dg-message "in definition of macro 'SQUARE'" } */

void
foo()
{
  SQUARE (1 << 0.1); /* { dg-error "16:invalid operands to binary <<" } */
}