1 // Test that -Wsign-compare doesn't warn about
2 // equality/non-equality comparisons with sizeof.
4 // { dg-options "-Wsign-compare" }
9 if (x != sizeof (sizeof (x))) // { dg-bogus "comparison between signed and unsigned integer expressions" }
17 if (x == sizeof (sizeof (x)) + 1) // { dg-bogus "comparison between signed and unsigned integer expressions" }