// PR c++/20280
// { dg-do compile }
// Gimplification of the COND_EXPR used to fail because it had an
// addressable type, and create_tmp_var rejected that.
struct A
{
~A();
};
struct B : A {
// Test that we can refer to the address of a base member of a null pointer
// to get its offset. The standard says that offsetof shall not be used on
// non-POD classes, but there seems to be no suc
// PR c++/5453: Test that we don't assume that the pointer target of a
// reference is non-null just because we know the reference isn't.
// { dg-do run }
struct V { };
struct A: virtual public V {
// Test that we can have an unnamed struct inside an anonymous union.
struct A
{
union
{
struct { int i; } foo;
};
};
static union
{
struct { int i; } foo;
};
int main ()
{
union
{
/* PR c++/4633 */
/* { dg-do compile } */
// The 'class X' inside the template used to escape (somehow),
// so that the typedef claimed that it was redefining X.
template struct S ;
te
/* Test that the correct data prefetch instructions are generated for i386
variants that use 3DNow! prefetch instructions. */
/* { dg-do compile { target i?86-*-* x86_64-*-*} } */
/* { dg-require
/* Test that the correct data prefetch instructions are generated for i386
variants that use 3DNow! prefetchw or SSE prefetch instructions with
locality hints. */
/* { dg-do compile { target i
/* Test that data prefetch instructions are not generated for i386 variants
that do not support those instructions. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effec
/* Check that branch percentages are calculated in variables
that are large enough to hold the count. */
/* { dg-options "-fprofile-arcs -ftest-coverage" } */
/* { dg-do run { target native } } */
/* Check that call return percentages are reported correctly by gcov,
along with line counts and branch percentages. This test case is
meant to be simple, as it was added at the same time that