memset (&addr, 0, sizeof (addr));
addr.sun_family = AF_UNIX;
strncpy (addr.sun_path, sockname, sizeof(addr.sun_path) - 1);
- if (bind (fd, (struct sockaddr *)&addr, sizeof (addr)) == -1) /* { dg message "datagram socket bound here" } */
+ if (bind (fd, (struct sockaddr *)&addr, sizeof (addr)) == -1) /* { dg-message "datagram socket bound here" } */
{
close (fd);
return;
-/* { dg-additional-options "-Wno-stringop-overflow"} */
+/* { dg-additional-options "-Wno-stringop-overflow" } */
/* -Wstringop-overflow= triggers on test5. */
#include <stdint.h>
void test_2 (const char *s, int c)
{
- char *p = __builtin_strchr (s, c); /* { dg-message "when '__builtin_strchr' returns NULL"} */
+ char *p = __builtin_strchr (s, c); /* { dg-message "when '__builtin_strchr' returns NULL" } */
*p = 'A'; /* { dg-warning "dereference of NULL 'p'" "null deref" } */
}
void test_3 (const char *s, int c)
{
- char *p = strchr (s, c); /* { dg-message "when 'strchr' returns NULL"} */
+ char *p = strchr (s, c); /* { dg-message "when 'strchr' returns NULL" } */
*p = 'A'; /* { dg-warning "dereference of NULL 'p'" "null deref" } */
}
Put ("B2 :");
Dump (B2'Address, R2'Max_Size_In_Storage_Elements);
New_Line;
- -- { dg-output "B2 : 12 34 56 78 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n"}
+ -- { dg-output "B2 : 12 34 56 78 00 ab 00 12 00 cd 00 34 00 ef 00 56.*\n" }
if A1.I /= B1.I or A1.A(1) /= B1.A(1) then
raise Program_Error;
// { dg-error "invalid.arg.id" "" { target *-*-* } 0 }
struct X { };
-std::format_string<X> str(""); // dg-error "here" }
+std::format_string<X> str(""); // { dg-error "here" }
// { dg-error "std::formatter must be specialized" "" { target *-*-* } 0 }