Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/torture/pr84233.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-do compile } // { dg-additional-options "-w" } void a(const char *, int, const char *, const char *); template <typename b> void c(b); struct d { long e; template <typename> union f; template <typename h> union f<h *> { f(h *i) : j(i) {} h *j; long bits; }; static int k(volatile long &i) { return *(int *)f<volatile long *>(&i).bits; } typedef long g; operator g() volatile { int l = k(e); c(l); } }; struct : d { } m, n; bool o; void p() { (o ? m : n) ? (void)0 : a("", 5, "", ""); }