view gcc/testsuite/g++.dg/system-binary-constants-1.C @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 
   Origin: Dodji Seketeli <dodji@redhat.com>
   { dg-options "-std=c++98 -pedantic" }
   { dg-do compile } 
 */

#include "system-binary-constants-1.h"

int
foo (void)
{
#if BINARY_INT_CONSTANT_IN_SYSTEM_HEADER /* A binary constant defined
					    in system header.  No
					    warning.  */
  return 23;
#endif
  return 0b1101; /* { dg-warning "binary constants are a C..14 feature or GCC extension" } */
}