Re: Problem while executing a custom testcase inside testsuite

2019-06-22 Thread Akshat Garg
On Sun, Jun 23, 2019 at 3:27 AM Jonathan Wakely wrote: > On Sat, 22 Jun 2019 at 12:25, Akshat Garg wrote: > > > > On Sat, Jun 22, 2019 at 1:10 PM Andreas Schwab > > wrote: > > > > > On Jun 22 2019, Akshat Garg wrote: > > > > > > > I believe I should be getting a warning like: > > > > warning:

Re: Problem while executing a custom testcase inside testsuite

2019-06-22 Thread Jonathan Wakely
On Sat, 22 Jun 2019 at 12:25, Akshat Garg wrote: > > On Sat, Jun 22, 2019 at 1:10 PM Andreas Schwab > wrote: > > > On Jun 22 2019, Akshat Garg wrote: > > > > > I believe I should be getting a warning like: > > > warning: initialization from incompatible pointer type > > >

Re: Problem while executing a custom testcase inside testsuite

2019-06-22 Thread Akshat Garg
On Sat, Jun 22, 2019 at 1:10 PM Andreas Schwab wrote: > On Jun 22 2019, Akshat Garg wrote: > > > I believe I should be getting a warning like: > > warning: initialization from incompatible pointer type > > [-Wincompatible-pointer-types] > > but in the gcc.log file, I found this: > > error:

Re: Problem while executing a custom testcase inside testsuite

2019-06-22 Thread Andreas Schwab
On Jun 22 2019, Akshat Garg wrote: > I believe I should be getting a warning like: > warning: initialization from incompatible pointer type > [-Wincompatible-pointer-types] > but in the gcc.log file, I found this: > error: initialization of '_Atomic struct rcutest *' from incompatible > pointer

Problem while executing a custom testcase inside testsuite

2019-06-21 Thread Akshat Garg
Hello all, I have been trying to run a test which assigns a value from non-atomic to an atomic pointer type. The code is as follows: /* File: xyz.c */ /* { dg-do compile } */ /* { dg-options "-std=c11 -pedantic-errors" } */ #include typedef __SIZE_TYPE__ size_t; extern void abort (void);