comparison gcc/testsuite/gcc.dg/cpp/macro-exp-tracking-3.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /*
2 { dg-options "-fshow-column -ftrack-macro-expansion=1" }
3 { dg-do compile }
4 */
5
6 #define SQUARE(A) A * A /* { dg-message "in definition of macro 'SQUARE'" } */
7
8 void
9 foo()
10 {
11 SQUARE (1 << 0.1); /* { dg-error "16:invalid operands to binary <<" } */
12 }