plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | arm-fp16-ops-8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-8.C | 619 | utf_8 | e05c10e4692341801a9878158cad27d7 | /* Test various operators on __fp16 and mixed __fp16/float operands. */
/* { dg-do compile { target arm*-*-* } } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-mfp16-format=ieee -ffast-math" } */
/* { dg-add-options arm_neon } */
#include "arm-fp16-ops.h"
/* We've specified options for hardwa... |
google | android | arm-fp16-ops-7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-7.C | 607 | utf_8 | df15bedf7dd28c41919973661d580f91 | /* Test various operators on __fp16 and mixed __fp16/float operands. */
/* { dg-do compile { target arm*-*-* } } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-mfp16-format=ieee" } */
/* { dg-add-options arm_neon } */
#include "arm-fp16-ops.h"
/* We've specified options for hardware float, so... |
google | android | arm-fp16-ops-4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-4.C | 201 | utf_8 | 573825e33459b64f1c5a7ef17270180a | /* Test various operators on __fp16 and mixed __fp16/float operands. */
/* { dg-do run { target arm*-*-* } } */
/* { dg-options "-mfp16-format=alternative -ffast-math" } */
#include "arm-fp16-ops.h"
|
google | android | arm-fp16-ops-5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-5.C | 715 | utf_8 | 55ccc89665481af2e7e6fc67952359f9 | /* Test various operators on __fp16 and mixed __fp16/float operands. */
/* { dg-do compile { target arm*-*-* } } */
/* { dg-require-effective-target arm_fp16_ok } */
/* { dg-options "-mfp16-format=ieee" } */
/* { dg-add-options arm_fp16 } */
#include "arm-fp16-ops.h"
/* We've specified options for hardware float, in... |
google | android | pr59255 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/pr59255.C | 353 | utf_8 | 70c6aef0cd7751caa0c6b7ed44aabd8b | // PR c++/59255
// { dg-options "-std=c++11 -O2" }
struct S
{
__attribute__((noinline, noclone)) ~S () noexcept (true)
{
if (fn)
fn (1);
}
void (*fn) (int);
};
__attribute__((noinline, noclone)) void
foo (int x)
{
if (x != 1)
throw 1;
}
int
main ()
{
for (int i = 0; i < 100; i++)
{
... |
google | android | indir-call-prof | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/indir-call-prof.C | 723 | utf_8 | 4dc349da4967d37af86f2fe0ef0ffb87 | /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */
struct A {
A () {}
virtual int AA (void)
{ return 0; }
};
struct B : public A {
B () {}
virtual int AA (void)
{ return 1; }
};
void * __attribute__((noinline,noclone)) wrap (void *p) { return p; }
int
main (void)
{
A a;
B b;
... |
google | android | func_reorder_gold_plugin_8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/func_reorder_gold_plugin_8.C | 817 | utf_8 | f0e87d9a56d6070fa1b954e71c7eabef | /* Check if unlikely_cutoff works as expected. Function foo is unlikely because of the cutoff. */
/* { dg-require-section-exclude "" } */
/* { dg-require-linker-function-reordering-plugin "" } */
/* { dg-options "-O2 -freorder-functions=callgraph -ffunction-sections -Wl,-plugin-opt,file=linker.dump -Wl,-plugin-opt,ed... |
google | android | func_reorder_gold_plugin_3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/func_reorder_gold_plugin_3.C | 743 | utf_8 | ed078fe26a034dada4010c49fef32541 | /* Check if the edge_cutoffp option to the function reordering plugin works as
expected. */
/* { dg-require-section-exclude "" } */
/* { dg-require-linker-function-reordering-plugin "" } */
/* { dg-options "-O2 -freorder-functions=callgraph -ffunction-sections -Wl,-plugin-opt,file=linker.dump -Wl,-plugin-opt,edge_c... |
google | android | func_reorder_gold_plugin_6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/func_reorder_gold_plugin_6.C | 1,569 | utf_8 | 5517f9da05f575629de8cba86a1ce745 | /* Check if use_maxcount works as expected. This makes the node profile weight to
be equal to the maximum count of any basic block in a function rather than the
entry count. foo_100's maxcount > foo_200's max count */
/* { dg-require-section-exclude "" } */
/* { dg-require-linker-function-reordering-plugin ""... |
google | android | func_reorder_gold_plugin_7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/func_reorder_gold_plugin_7.C | 1,632 | utf_8 | 0d4a8a93dd78b9a50e2f54cfdb474409 | /* Check if turning off use_maxcount works as expected. This makes the node
profile weight to be equal to the entry count of any basic block in a
function rather than the max count.
foo_100's maxcount > foo_200's max count but
foo_100's entry count < foo_200's entry count. */
/* { dg-require-section-excl... |
google | android | func_reorder_gold_plugin_4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/func_reorder_gold_plugin_4.C | 1,357 | utf_8 | e9ef18b457c54a3cc7d064b1466e085c | /* Check if cutting off callgraph gets all functions laid out only according to
function profiles and not prefixes. foo_200 is as hot as the other foo's but
has a unlikely section prefix. This should not matter as sort_name_prefix
is turned off. */
/* { dg-require-section-exclude "" } */
/* { dg-require-link... |
google | android | partition3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/partition3.C | 231 | utf_8 | f1c8c7969780812c78ada663781cdf94 | // PR middle-end/45566
// { dg-require-effective-target freorder }
// { dg-options "-O2 -fnon-call-exceptions -freorder-blocks-and-partition" }
int k;
int
main ()
{
try
{
if (k)
throw 6;
}
catch (...)
{
}
}
|
google | android | indir-call-prof-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/indir-call-prof-2.C | 2,025 | utf_8 | 80d09170dea54500770122f27eddf44e | /* { dg-options "-O" } */
int foo1(void) { return 0; }
int bar1(void) { throw 1; }
void foo2(void) { }
void bar2(void) { throw 1; }
void __attribute__((noinline,noclone)) test1(void (*f)(void)) { (*f)(); }
void __attribute__((noinline,noclone)) test2(void (*f)(void)) { (*f)(); }
int __attribute__((noinline,noclone)) t... |
google | android | pr53460 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/pr53460.C | 482 | utf_8 | 6619c40836c140325a5ea9b8f43ee291 | // { dg-options "-O" }
template<typename T> class OwnPtr {
public:
~OwnPtr();
};
template<class T> class GlyphMetricsMap {
public:
GlyphMetricsMap() { }
OwnPtr<int> m_pages;
};
class SimpleFontData {
public:
void boundsForGlyph() const;
};
inline __attribute__((__always_inline__))
void SimpleFontData::... |
google | android | func_reorder_gold_plugin_5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/func_reorder_gold_plugin_5.C | 1,377 | utf_8 | 5b8bd181fab50e59b5153c25ceff2edc | /* Check if cutting off callgraph and using sort_name_prefix gets all functions laid out
according to prefixes. foo_200 is almost as hot as the other foo's but should
not be grouped with them as it has a different section prefix and sort_name_prefix is
turned on. */
/* { dg-require-section-exclude "" } */
/... |
google | android | inline_mismatch_args | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/inline_mismatch_args.C | 752 | utf_8 | d5c1aa2747e777e103754805cd94dbb2 | /* { dg-options "-O2 -fdump-tree-einline" } */
class DocId {
public:
DocId() { }
DocId(const DocId &other) { }
};
int g;
class Base {
public:
virtual void Foo(DocId id) { g++; }
};
class Super: public Base {
public:
void Foo(DocId id) { }
void Bar(Base *base, DocId id) __attribute__((noinline));
};
void Sup... |
google | android | partition2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/partition2.C | 210 | utf_8 | f2275b14adf17ff6f3e0efb26fefe49b | // PR middle-end/45458
// { dg-require-effective-target freorder }
// { dg-options "-O2 -fnon-call-exceptions -freorder-blocks-and-partition" }
int
main ()
{
try
{
throw 6;
}
catch (...)
{
}
}
|
google | android | morefunc | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/morefunc.C | 956 | utf_8 | 7b0ca9871a5eab703cda9497ae672286 | /* { dg-options "-O2 -fno-devirtualize --param=profile-func-internal-id=0 -fdump-ipa-profile -Wno-attributes -Wno-coverage-mismatch" } */
#include "reorder_class1.h"
#include "reorder_class2.h"
int g;
#ifdef _PROFILE_USE
/* Another function not existing
* in profile-gen */
__attribute__((noinline)) void
new_func (... |
google | android | func_reorder_gold_plugin_split_functions_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/func_reorder_gold_plugin_split_functions_1.C | 2,159 | utf_8 | 3b4f35e800f6ce9a716e6dc9bdc8093e | /* Check if the gold function reordering plugin reorders split functions.
Check if foo is split and the cold section of foo is not next to its hot
section*/
/* { dg-require-section-exclude "" } */
/* { dg-require-linker-function-reordering-plugin "" } */
/* { dg-require-effective-target freorder } */
/* { dg-opti... |
google | android | partition1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/partition1.C | 1,060 | utf_8 | 912d73328c4d61995aa0fc60ff274036 | /* { dg-require-effective-target freorder } */
/* { dg-options "-O2 -freorder-blocks-and-partition" } */
struct A { A () __attribute__((noinline)); ~A () __attribute__((noinline)); };
A::A () { asm volatile ("" : : : "memory"); }
A::~A () { asm volatile ("" : : : "memory"); }
int bar () __attribute__((noinline));
voi... |
google | android | pr57451 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/pr57451.C | 481 | utf_8 | a54a5070a3789fa2ec977323faa81e1d | // { dg-require-effective-target freorder }
// { dg-options "-O2 -freorder-blocks-and-partition -g" }
extern "C" void abort (void);
struct MyException {};
struct Data {
int nr;
Data() : nr(66) {}
};
Data __attribute__((noinline,noclone)) getData(int i)
{
if (i) throw MyException();
Data data;
data.nr = i... |
google | android | partition_patch | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/partition_patch.C | 455 | utf_8 | 3dfe269b573a86589c83e45527a25730 | // Check if patching works with function splitting.
// { dg-require-effective-target freorder }
// { dg-options "-O2 -fnon-call-exceptions -freorder-blocks-and-partition " { target { ! x86_64-*-* } } }
// { dg-options "-O2 -fnon-call-exceptions -freorder-blocks-and-partition -mpatch-functions-for-instrumentation -fno-o... |
google | android | reorder | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/reorder.C | 984 | utf_8 | 7d900f51254ab7677ee65b2cc16a6051 | /* { dg-options "-O2 -fno-devirtualize --param=profile-func-internal-id=0 -fdump-ipa-profile -Wno-attributes" } */
#ifdef _PROFILE_USE
#include "reorder_class1.h"
#include "reorder_class2.h"
#else
#include "reorder_class2.h"
#include "reorder_class1.h"
#endif
int g;
static __attribute__((always_inline))
void test1 (A... |
google | android | pr63581 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/pr63581.C | 1,247 | utf_8 | f3b48aeb86621caf4df1f285501e7a5e | // { dg-require-effective-target freorder }
/* { dg-options "-O2 -g -fno-peel-loops" } */
struct page {
int i;
} global;
__attribute__((noinline)) static struct page* find_page1 (int i)
{
if ( i< 150)
return 0;
global.i = i;
return &global;
}
__attribute__((noinline)) static struct page* find_page2 (in... |
google | android | func_reorder_gold_plugin_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/func_reorder_gold_plugin_1.C | 1,520 | utf_8 | b052c87e8aadab8be1c874ed5770cec4 | /* Verify if call-graph profile sections are created with -freorder-functions=.
Check of edge profiles and node profiles are present in the profile
sections. Check if the segment splitting API is invoked. */
/* { dg-require-section-exclude "" } */
/* { dg-require-linker-function-reordering-plugin "" } */
/* { d... |
google | android | pr51719 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/pr51719.C | 275 | utf_8 | fb8bbe2d556b451e4da43891336e8c73 | // PR tree-optimization/51719
// { dg-options "-O -fpartial-inlining" }
int
bar (void)
{
throw 1;
}
int __attribute__ ((noinline, noclone))
foo (int (*f) (void))
{
try
{
return (*f) ();
}
catch (...)
{
}
return 0;
}
int
main ()
{
return foo (bar);
}
|
google | android | func_reorder_gold_plugin_2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/func_reorder_gold_plugin_2.C | 744 | utf_8 | 087996bf7e3d2e88d40848d17dd8bb09 | /* Check if the edge_cutoffa option to the function reordering plugin works as
expected. */
/* { dg-require-section-exclude "" } */
/* { dg-require-linker-function-reordering-plugin "" } */
/* { dg-options "-O2 -freorder-functions=callgraph -ffunction-sections -Wl,-plugin-opt,file=linker.dump -Wl,-plugin-opt,edge_c... |
google | android | vcall1_2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/vcall1_2.C | 328 | utf_8 | a652712b3bdc9016019f50b06b31c63d | /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */
struct A {
A () {}
virtual int AA (void)
{ return 0; }
};
struct B : public A {
B () {}
virtual int AA (void)
{ return 1; }
};
struct C : public B {
C () {}
virtual int AA (void)
{ return 2; }
};
C c;
A* getC(void)
{
retur... |
google | android | tls_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/tls_0.C | 244 | utf_8 | bc39429e9225b6ebeae1ec57eb56e43e | // { dg-options "-std=c++11 -O2 --param=lipo-sampling-period=1" }
#include "tls.h"
thread_local TLSClass* current_tls_ = NextTLSClass();
void *SetTLSClass(TLSClass *a) {
current_tls_ = a;
}
TLSClass *GetTLSClass() {
return current_tls_;
}
|
google | android | static1_2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/static1_2.C | 187 | utf_8 | c3e115d0e3561601eb99f2408a6125a3 | /* { dg-options "-std=c++11 -O2" } */
#include <vector>
class B {
public:
int f(int x) const;
};
static const std::vector<int> point2_{43};
int B::f(int x) const {
return x+1;
}
|
google | android | static1_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/static1_1.C | 187 | utf_8 | dba9773a1e9580ac64a1878bb1bb4ddc | /* { dg-options "-std=c++11 -O2" } */
#include <vector>
class A {
public:
int f(int x) const;
};
static const std::vector<int> point1_{42};
int A::f(int x) const {
return x+1;
}
|
google | android | vcall1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/vcall1_0.C | 765 | utf_8 | e7b8433ff38f4c32565544ad325e85dd | /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */
#include <stdio.h>
struct A {
A () {}
virtual int AA (void) { return 0; }
};
extern A* getB (void);
extern A* getC (void);
int g;
int
main (void)
{
A* p;
int i;
int s = 0;
p = getB();
for (i = 0; i < 100; i++)
{
s += p->AA();... |
google | android | static1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/static1_0.C | 1,249 | utf_8 | 32823f92e13ecb5e417f722ec1551263 | // { dg-options "-std=c++11 -O2" }
// A test case for static var promotion on targets like powerpc, where
// the static initializer data is loaded via indirection through
// TOC. Ensure that the global label for static initializer data is
// unique via *.cmo* suffix.
// Bug: after static var promotion in two differen... |
google | android | partition2_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/partition2_0.C | 261 | utf_8 | 513d9db2c08a96002c2640cd5bc9619e | // PR middle-end/45458
// { dg-require-effective-target freorder }
// { dg-options "-fnon-call-exceptions -freorder-blocks-and-partition" }
// { dg-skip-if "PR target/47683" { mips-sgi-irix* } }
int
main ()
{
try
{
throw 6;
}
catch (...)
{
}
}
|
google | android | comdat_fixup_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/comdat_fixup_1.C | 113 | utf_8 | d262748b81bb3cfbf827c558b1ccc93a | /* { dg-options "-O2 -fno-inline" } */
#include "comdat_fixup.h"
int foo1(int x)
{
Foo f;
return f.foo(x);
}
|
google | android | indir-call-prof-2_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/indir-call-prof-2_0.C | 2,025 | utf_8 | 80d09170dea54500770122f27eddf44e | /* { dg-options "-O" } */
int foo1(void) { return 0; }
int bar1(void) { throw 1; }
void foo2(void) { }
void bar2(void) { throw 1; }
void __attribute__((noinline,noclone)) test1(void (*f)(void)) { (*f)(); }
void __attribute__((noinline,noclone)) test2(void (*f)(void)) { (*f)(); }
int __attribute__((noinline,noclone)) t... |
google | android | indir-call-prof_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/indir-call-prof_0.C | 732 | utf_8 | cac8cbfed904ee5977dcceee8ced12f3 | /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile --param=lipo-sampling-period=1" } */
struct A {
A () {}
virtual int AA (void)
{ return 0; }
};
struct B : public A {
B () {}
virtual int AA (void)
{ return 1; }
};
void * __attribute__((noinline,noclone)) wrap (void *p) { return p; }
int
ma... |
google | android | tls2_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/tls2_1.C | 663 | utf_8 | 05b99ae3b8b4017aa5ae59566acd050c | // { dg-options "-std=c++11 -O2 --param=lipo-sampling-period=1" }
#include <stdio.h>
#include <stdlib.h>
#include <new>
#include "tls2.h"
TLSClass* NextTLSClass() {
return new TLSClass();
}
int NextId() {
static int id = 0;
return id++;
}
static thread_local TLSClass* current_tls2_ = NextTLSClass();
void *SetTLSC... |
google | android | comdat_fixup_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/comdat_fixup_0.C | 242 | utf_8 | 2b5cc5f076a1da2774fc58f16314cd64 | /* { dg-options "-O2 -fno-inline -fprofile-generate-buildinfo=$srcdir/g++.dg/tree-prof/lipo/buildinfo.txt" } */
#include <stdio.h>
extern int foo1(int x);
extern int foo2(int x);
int main()
{
printf ("Result = %d\n", foo1(1) + foo2(1));
}
|
google | android | comdat_fixup_2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/comdat_fixup_2.C | 113 | utf_8 | 8b30e052d6504e443b112d8086c649ad | /* { dg-options "-O2 -fno-inline" } */
#include "comdat_fixup.h"
int foo2(int x)
{
Foo f;
return f.foo(x);
}
|
google | android | tls2_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/tls2_0.C | 252 | utf_8 | a728e5ebd2c487dadd624786d1500b5b | // { dg-options "-std=c++11 -O2 --param=lipo-sampling-period=1" }
#include "tls2.h"
static thread_local TLSClass* current_tls_ = NextTLSClass();
void *SetTLSClass(TLSClass *a) {
current_tls_ = a;
}
TLSClass *GetTLSClass() {
return current_tls_;
}
|
google | android | tls_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/tls_1.C | 803 | utf_8 | bac78c5c13fa90a88d589fd0f03b43a5 | // { dg-options "-std=c++11 -O2 --param=lipo-sampling-period=1" }
#include <stdio.h>
#include <stdlib.h>
#include <new>
#include "tls.h"
TLSClass* NextTLSClass() {
return new TLSClass();
}
int NextId() {
static int id = 0;
return id++;
}
void *SetTLSClassHere(TLSClass *a) {
current_tls_ = a;
}
thread_local TLSC... |
google | android | partition1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/partition1_0.C | 1,118 | utf_8 | 53fa0402b1fdf9ca5505893587d14d29 | /* { dg-require-effective-target freorder } */
/* { dg-options "-O2 -freorder-blocks-and-partition" } */
/* { dg-skip-if "PR target/47683" { mips-sgi-irix* } } */
struct A { A () __attribute__((noinline)); ~A () __attribute__((noinline)); };
A::A () { asm volatile ("" : : : "memory"); }
A::~A () { asm volatile ("" : :... |
google | android | inline_mismatch_args_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/inline_mismatch_args_0.C | 752 | utf_8 | d5c1aa2747e777e103754805cd94dbb2 | /* { dg-options "-O2 -fdump-tree-einline" } */
class DocId {
public:
DocId() { }
DocId(const DocId &other) { }
};
int g;
class Base {
public:
virtual void Foo(DocId id) { g++; }
};
class Super: public Base {
public:
void Foo(DocId id) { }
void Bar(Base *base, DocId id) __attribute__((noinline));
};
void Sup... |
google | android | partition3_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/partition3_0.C | 230 | utf_8 | ea1da784f9e49aa78c8f869baf3f3bd7 | // PR middle-end/45566
// { dg-require-effective-target freorder }
// { dg-options "-O -fnon-call-exceptions -freorder-blocks-and-partition" }
int k;
int
main ()
{
try
{
if (k)
throw 6;
}
catch (...)
{
}
}
|
google | android | vcall1_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-prof/lipo/vcall1_1.C | 251 | utf_8 | cb912385c44dded42d24126197c48557 | /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */
struct A {
A () {}
virtual int AA (void)
{ return 0; }
};
struct B : public A {
B () {}
virtual int AA (void)
{ return 1; }
};
B b;
A* getB (void)
{
return &b;
}
|
google | android | call4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/call4.C | 537 | utf_8 | 262e2a044016a13ee93fb310eff38bd2 | // { dg-do compile }
// PR 32839. Default arguments propagated through the type system to
// an indirect call.
template<typename T>
struct TPL
{
enum Whatever {e1, e2};
static void Quux (int i = e1 | e2);
};
template <typename F>
void DoIt (F fun)
{
fun (); // { dg-error "too few arguments" }
}
void Foo ()
{
... |
google | android | bitfield6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/bitfield6.C | 82 | utf_8 | fd46219c0040c2b4569b36afd840025b | // PR c++/30274
struct S {
bool x : 4;
};
S s;
void f() {
++s.x = false;
}
|
google | android | sizeof1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/sizeof1.C | 99 | utf_8 | 0aff78a2cc7b554bd2a283f999880d26 | // PR c++/12989
struct A
{
int foo() { return sizeof(bar); } // { dg-error "" }
int bar();
};
|
google | android | bitfield5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/bitfield5.C | 162 | utf_8 | 68c100f8b0f867ba9c41cf4b1287daeb | // PR c++/30274
// { dg-do run }
struct S {
bool x : 4;
};
S s;
int main() {
s.x++;
if (s.x != 1)
return 1;
++s.x;
if (s.x != 1)
return 2;
}
|
google | android | anew1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/anew1.C | 501 | utf_8 | 4cf16a5e56e9a805e8cab8129d3ec12c | // { dg-do run }
// PR 11228: array operator new, with zero-initialization and a variable sized array.
// Regression test for PR
#include <new>
#include <stdlib.h>
#include <string.h>
int* allocate(int n)
{
void *p;
p = malloc(n * sizeof (int));
memset (p, 0xff, n * sizeof(int));
return new (p) int[n]();
}
int... |
google | android | bool2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/bool2.C | 212 | utf_8 | 863ab5de11960b6302468e16665e31ec | // { dg-do compile }
// make sure that a typedef for a bool will have the
// the same results as a bool itself.
typedef bool my_bool;
int main()
{
my_bool b = false;
b--; // { dg-error "" }
return 0;
}
|
google | android | cond12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cond12.C | 189 | utf_8 | 7c1069325007e7f4f7b1bb018727d4b6 | // PR c++/58714
// { dg-do run }
struct X {
X& operator=(const X&){}
X& operator=(X&){__builtin_abort();}
};
int main(int argv,char**) {
X a, b;
((argv > 2) ? a : b) = X();
}
|
google | android | cast1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cast1.C | 86 | utf_8 | 2ef606c671097dddd5d5000c30530ba5 | struct S; // { dg-error "forward" }
void f(S* p) { ((S) (*p)); } // { dg-error "" }
|
google | android | cast4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cast4.C | 314 | utf_8 | ed8e65f6a9fb8340f4d8881b00bc8a62 | // { dg-do run }
// PR c++/22132
extern "C" void abort ();
struct foo {
int a;
int b;
};
class Foobar : public foo {
public:
Foobar() { a = 1; b = 2; }
virtual ~Foobar() {}
};
Foobar obj;
const Foobar* objPtr = &obj;
foo* f = (foo*)objPtr;
int main () {
if (f->a != 1 || f->b != 2)
abort ();
}
|
google | android | cast3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cast3.C | 287 | utf_8 | 43b3f0cf8dc0665f8a82af5379392da1 | // { dg-do compile }
enum MyState
{
QUIT = 0,
START,
STOP,
PAUSE
};
double GetDouble()
{
return 1.0;
}
int main()
{
MyState the_state;
the_state = (MyState)GetDouble(); // { dg-bogus "invalid cast" }
return 0;
}
|
google | android | for2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/for2.C | 235 | utf_8 | cd7f4946b61f298e733a92601139e8ef | // { dg-do compile }
// PR c++/17661
// We used to try to create a temprary for the condition
// expression in the for which was wrong.
struct C
{
C (const C &x);
};
C &f();
void breakme (C j, bool k)
{
for (;; k ? j : f()) ;
}
|
google | android | cast9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cast9.C | 140 | utf_8 | 8b3e4787ac841e3157f9c47278119629 | // PR c++/27177
struct Z {};
struct A : Z {};
Z* implicitToZ (Z*);
struct B : A
{
static const int i = sizeof(implicitToZ((B*)0));
};
|
google | android | lval1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/lval1.C | 110 | utf_8 | e9c430238d4efd57c1f944c12443406d | void f ()
{
int n;
(char) n = 1; // { dg-error "" }
} |
google | android | for1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/for1.C | 161 | utf_8 | 4d4bd4c17e114aaf9f89d2929fc74cfe | // PR c++/13663
struct S {
void f();
};
void g(int);
void g(double);
void h () {
S s;
for (;;s.f); // { dg-error "" }
for (;;g); // { dg-error "" }
}
|
google | android | unary1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/unary1.C | 264 | utf_8 | 8f5d773ab2c0fb76d721a88e7936dd2a | // { dg-do compile }
// Unary plus (but not unary minus) can be applied to pointer types
void *p;
void f(void)
{
-p; // { dg-error "wrong type argument" }
+p;
}
template <int>
void g(void)
{
-p; // { dg-error "wrong type argument" }
+p;
}
|
google | android | cond8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cond8.C | 187 | utf_8 | 676630e00712682121f29e23eca37bed | // PR c++/22434
// { dg-options "" }
struct A
{
A(void*); // { dg-message "initializing" }
~A();
};
void foo(const int i, bool b)
{
b ? A(0) : i; // { dg-error "conversion" }
}
|
google | android | bool1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/bool1.C | 285 | utf_8 | 6b31d632588060d56a7701a0a12216c8 | // { dg-do run }
// PR C++/29295
// make sure that a typedef for a bool will have the
// the same results as a bool itself.
extern "C" void abort();
typedef bool my_bool;
int main()
{
my_bool b = false;
int i;
b++;
b++;
i = b;
if (i != 1)
abort ();
return 0;
}
|
google | android | dtor4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/dtor4.C | 89 | utf_8 | 96485302525dddaf878ba9c9bd2027a5 | typedef int C;
typedef double D;
void
f ()
{
C o;
o.D::~C (); // { dg-error "" }
}
|
google | android | cond4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cond4.C | 250 | utf_8 | d30ef5af28e6363dab6713f12d513bc9 | // PR c++/13971
struct QChar {
static const QChar null;
};
struct QCharRef {
operator QChar() const;
};
struct QString {
QCharRef operator[](int i);
};
QChar fillParagraph(QString s, int psi) {
return psi ? QChar::null : s[psi];
}
|
google | android | sizeof3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/sizeof3.C | 93 | utf_8 | b39edf0129c7b02d40dd1f8360666a7c | // PR c++/15337
class CCC;
int main() { sizeof(CCC); return 0; } // { dg-error ".*CCC.*" }
|
google | android | static_cast6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/static_cast6.C | 260 | utf_8 | b908cbd89626f67c64bd034d95994258 | // PR c++/21853
struct blah {
int a;
};
int main( int argc, char ** argv ) {
int blah::* ptdma = &blah::a;
const void *ptdmv = static_cast< void * >( &ptdma );
int blah::* const ptdmb = * static_cast< int blah::* const * >( ptdmv );
return 0;
}
|
google | android | call2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/call2.C | 312 | utf_8 | 11d589082fe10f4614aafaae41200569 | // { dg-do compile }
// PR c++/12184. ICE
class C;
class D;
bool mm(D);
void g(C& f) {
mm(f); // { dg-error "parameter" "" }
} |
google | android | anew2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/anew2.C | 518 | utf_8 | c272c27e69863d4ba063be24a228ce5f | // { dg-do run }
// PR 11228: array operator new, with zero-initialization and a variable sized array.
// Regression test for PR
#include <new>
#include <stdlib.h>
#include <string.h>
double* allocate(int n)
{
void *p;
p = malloc(n * sizeof (double));
memset (p, 0xff, n * sizeof(double));
return new (p) double... |
google | android | const1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/const1.C | 160 | utf_8 | b3b79503c02a3a734c756531304f5413 | // PR c++/57551
extern unsigned long ADDR;
unsigned long f(){
const unsigned long* const var=&ADDR;
const unsigned long retval=var[1];
return retval;
}
|
google | android | bitfield9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/bitfield9.C | 298 | utf_8 | f7feef6eca2fd890a8914fedc2a62ddf | // PR c++/32346
// { dg-do run }
// { dg-options "-Wno-overflow" }
extern "C" void abort();
struct S {
long long i : 32;
};
void f(int i, int j) {
if (i != 0xabcdef01)
abort();
if (j != 0)
abort();
}
void g(S s) {
f(s.i, 0);
}
int main() {
S s;
s.i = 0xabcdef01;
g(s);
}
|
google | android | copy1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/copy1.C | 365 | utf_8 | 40c29dc173bf365777a7de4d0970b286 | // PR c++/14035
// { dg-do run }
extern "C" void abort();
struct Blob {
int x, y;
Blob() { }
Blob(const Blob &b) { abort (); }
};
struct Blobby : public Blob { };
struct Wooly {
operator const Blobby & ()
{
return myBlobby;
}
Blobby myBlobby;
};
void catcher(const Blob &blo)
{ }
int main()
{
Wo... |
google | android | unary3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/unary3.C | 148 | utf_8 | 50101473c07e54911f512727ba7f6cd4 | // PR c++/41131
// { dg-do compile }
struct X { enum E { a = 100 }; };
int
main ()
{
X x;
(void) &x.a; // { dg-error "lvalue required" }
}
|
google | android | string-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/string-1.C | 220 | utf_8 | a2cb6541b849d8c33282f342e26447ca | // { dg-do compile }
// This testcase used to seg fault (PR c++/38648)
// { dg-prune-output "initializer lists" }
char a[1];
int foo(
{
a = ""; // { dg-error "" }
return 0; // { dg-error "" }
} // { dg-error "" }
|
google | android | cond9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cond9.C | 346 | utf_8 | d66ca920348778bbeb8e0826f1345ba0 | // PR c++/27666
struct A { // { dg-message "A" }
A(int); // { dg-message "A" }
};
void foo(volatile A a) {
1 ? a : 0; // { dg-error "match|temporary" }
// { dg-message "candidate" "candidate note" { target *-*-* } 8 }
1 ? 0 : a; // { dg-error "match|temporary" }
// { dg-message "candidate" "candidate note"... |
google | android | crash-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/crash-1.C | 173 | utf_8 | 5943e958df776a88c39dc200ec5d291c | // C++ PR/10476
struct X {
X();
X(const X& __str);
};
X const bar();
void foo()
{
X y;
(true ? y : bar());
} |
google | android | static_cast4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/static_cast4.C | 122 | utf_8 | 3768ee52241cd5c440a86d1ecde9f029 | class C {
public:
explicit C(int) {}
};
int main()
{
int i = 0;
static_cast<C>(i);
return 0;
}
|
google | android | static_cast5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/static_cast5.C | 326 | utf_8 | 10a6604802b4ce916144cdc9ac8a3fc0 | void ambig()
{
struct A {};
struct B : A {};
struct C : A {};
struct D : B, C {};
D d;
A* ap = static_cast<B*> (&d);
D* db = static_cast<D*> (ap); // { dg-error "" }
D& dr1 = static_cast<D&> (*ap); // { dg-error "" }
A& ar = static_cast<C&> (d);
D& dr = static_cast<D&> (ar); // { dg-error ""... |
google | android | anew3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/anew3.C | 545 | utf_8 | 88cfba5bf8bdd95998bb48be16446076 | // { dg-do run }
// PR 11228: array operator new, with zero-initialization and a variable sized array.
// Regression test for PR
#include <new>
#include <stdlib.h>
#include <string.h>
struct X
{
int a;
double b;
};
X* allocate(int n)
{
void *p;
p = malloc(n * sizeof (X));
memset (p, 0xff, n * sizeof(X));
r... |
google | android | static_cast1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/static_cast1.C | 62 | utf_8 | 89139f7a57a0c8dd7c105624b328d423 | void foo(int x)
{
static_cast<const unsigned int&>(x);
}
|
google | android | stdarg1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/stdarg1.C | 147 | utf_8 | d48c1940b3fda25f577c09c3d5b15f9c | // PR c++/23840
#include <stdarg.h>
struct S
{
int f(int);
};
void f(int i, ...)
{
va_list ap;
va_start (ap, i);
va_arg (ap, S).f(0);
}
|
google | android | cond2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cond2.C | 221 | utf_8 | 9940c2a62890f4870b29a68d36aee007 | struct Term { };
struct Boolean : Term {
explicit Boolean(bool);
};
struct IsZero : Term {
Term *eval();
};
Term*
IsZero::eval()
{
return true ? new Boolean(false) : this; // { dg-error "conditional expression" }
}
|
google | android | member-of-incomplete-type-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/member-of-incomplete-type-1.C | 228 | utf_8 | 0b5e348c921017780a4e80249591b84c | struct A;
int main()
{
A::g(); // { dg-error "incomplete" "" }
} |
google | android | cast8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cast8.C | 95 | utf_8 | c9eba403b9c8b560219498d333b0acb4 | // PR c++/29886
struct A {
static int x[1];
};
void foo(int i)
{
if (int(A::x[i])) {}
}
|
google | android | bitfield4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/bitfield4.C | 173 | utf_8 | acdc35a060321042e2d5d8bd77774fac | // PR c++/30274
// { dg-do link }
struct S {
bool x : 4;
};
S s;
template <typename T>
void f(T);
template <>
void f(bool) {}
int main() {
f(s.x++);
f(++s.x);
}
|
google | android | pr29066 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/pr29066.C | 451 | utf_8 | 60bb03281297f707f9874467907ac6cf | // PR c++/29066
// Test pointer to member function comparison
// { dg-do run }
extern "C" void abort (void);
struct X
{
virtual void a(void)=0;
};
struct Z : public X
{
void a(void) {}
};
void f(X *obj)
{
void (X::*xp)(void) = 0;
void (X::*xp2)(void) = 0;
xp = &X::a;
if (xp == xp2)
{
abort(... |
google | android | bool4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/bool4.C | 221 | utf_8 | 207aa1057e3c1166054d2119be784a50 | // { dg-do compile }
// make sure that a typedef for a bool will have the
// the same results as a bool itself.
typedef volatile bool my_bool;
int main()
{
my_bool b = false;
b--; // { dg-error "" }
return 0;
}
|
google | android | volatile1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/volatile1.C | 111 | utf_8 | e639e926667ce8f9dee4e94ea0269323 | // PR c++/23167
struct dom
{
static int tostr();
void eval_old() volatile{tostr();}
~dom() throw();
};
|
google | android | unary2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/unary2.C | 430 | utf_8 | 61339fcff4901b417b1fa8ede6e4a521 | // { dg-do compile }
// Unary plus/minus are not lvalues.
// In templates we require an instantiation to emit the diagnostic. This
// is wrong and it is PR 18474.
int n;
void f(void)
{
-n = 0; // { dg-error "lvalue" }
+n = 0; // { dg-error "lvalue" }
}
template <int>
void g(void)
{
-n = 0; ... |
google | android | string-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/string-2.C | 179 | utf_8 | 8a5e6a6573abaebf92bb5a34a119810e | // { dg-do compile }
// This testcase used to seg fault (PR c++/38648)
char a[1];
int foo(a = "") // { dg-error "invalid array assignment" }
{ // { dg-error "" }
return 0;
}
|
google | android | incomplete1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/incomplete1.C | 259 | utf_8 | a7b2ff0b7e3eb33ae39f51b9c2436899 | // PR 10202
// { dg-do compile }
// { dg-options -O0 }
extern struct _smtp_account smtp_accounts[];
typedef struct _smtp_account {
int flags;
} Smtp_Account;
void get_smtp_host_info ()
{
if (smtp_accounts[0].flags & 0x01)
get_smtp_host_info();
}
|
google | android | ptrmem5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/ptrmem5.C | 108 | utf_8 | 874b09468973f06e0b8fc01585a95d04 | // PR c++/15696
struct A {};
typedef void (A::*ftype)();
void foo() { A().*ftype(); } // { dg-error "" }
|
google | android | cond3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/cond3.C | 70 | utf_8 | 0ee447faae923ac2c95505c9d02aa9f9 | const int i = 7;
const int j = 3;
void f(bool b) {
&(b ? i : j);
}
|
google | android | compound-asn1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/compound-asn1.C | 188 | utf_8 | b27e986bef1cb10bc8c753783a8faee7 | // PR c++/45437
// { dg-options -Wsequence-point }
// { dg-do run }
bool f(bool& b) {
b = true;
return false;
}
int main() {
bool b = false;
b |= f(b);
if (!b)
return 1;
}
|
google | android | ptrmem4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/ptrmem4.C | 229 | utf_8 | 00a3281a5c60b23cc64b650f1e1bc13e | // PR c++/15471
// { dg-do run }
struct myclass {
unsigned a;
union {
unsigned x;
};
};
int main () {
myclass foo;
unsigned myclass::* member = &myclass::x;
if (&(foo.*member) != &foo.x)
return 1;
}
|
google | android | enum1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/enum1.C | 126 | utf_8 | fd680877ab1cfa7b118501bb1e133e2a | // { dg-do run }
extern "C" void abort();
int main()
{
enum { shelf = 4 } t = shelf;
if (!(t & shelf))
abort ();
}
|
google | android | static_cast7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/static_cast7.C | 225 | utf_8 | b8bfe8def8203e08665d966c83e2738c | // Regression test for bug 39415 (and its duplicate 44916).
struct S {};
struct T : S {};
int f(const T*) {}
void f(T*);
int main() {
S* s(0);
int a = f(static_cast<const T*>(s));
int b = f(static_cast<const T*>(0));
}
|
google | android | static_cast2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/static_cast2.C | 95 | utf_8 | 0a2ed6ddead49d170ca2bdfd5b262d1e | struct B {};
int main () {
B a;
(1 ? static_cast<B&>(a) :
*static_cast<B*>(&a));
}
|
google | android | pr19355-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/pr19355-1.C | 165 | utf_8 | e0ba8ce6144da0b9ed7164d2baac70c5 | // PR c++/19355
// { dg-do compile }
typedef bool Boolean;
extern Boolean is_nil ();
void f(void)
{
unsigned int ilen;
if(!((ilen > 0 ? !is_nil () : 1))) {}
}
|
google | android | minmax | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/expr/minmax.C | 148 | utf_8 | d8f214b2a524317298593b987cbb3087 | // { dg-do compile }
void f(void)
{
int a, b;
(a >? b) = 1; // { dg-error "" }
}
void g(void)
{
int a, b;
(a <? b) = 1; // { dg-error "" }
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.