(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pr68657-1.c
       1  /* PR c/68657 */
       2  /* { dg-options "-Werror=sign-conversion -Werror=float-conversion -Werror=frame-larger-than=65536" } */
       3  /* { dg-require-effective-target ptr32plus } */
       4  
       5  void
       6  f1 (void)
       7  {
       8    unsigned int a = -5;	/* { dg-error "unsigned conversion from .int. to .unsigned int. changes value from .-5. to .\[0-9\]+." } */
       9    (void) a;
      10  }
      11  
      12  int
      13  f2 (void)
      14  {
      15    return 3.1f;	/* { dg-error "conversion from .float. to .int. changes value" } */
      16  }
      17  
      18  int f3 (char *);
      19  
      20  int
      21  f4 (void)
      22  {
      23    char buf[131072];
      24    return f3 (buf);
      25  }		/* { dg-error "the frame size of 1\[0-9]* bytes is larger than 65536 bytes" } */
      26  
      27  /* { dg-prune-output "treated as errors" } */