view gcc/testsuite/g++.dg/cpp/syshdr3.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

/* Contributed by Dodji Seketeli <dodji@redhat.com> */
/* Origin: PR preprocessor/7263 */
/* { dg-options "-pedantic -std=c++98 -ftrack-macro-expansion=1" } */
/* { dg-do compile } */

/* This tests the proprer suppression of warning coming from macro
   defined in system headers and expanded in a non-system header
   location.  */
#include "syshdr3.h"

static _Complex float c = _Complex_I + _Complex_I; /* These macros are defined in
						    system header so we should
						    have no warning here.  */
U_LL u = ONE_ULL; /* Likewise here.  */

unsigned long long v = 1ULL; /* { dg-warning "long long" } */