diff options
Diffstat (limited to 'test/Sema/self-comparison.c')
-rw-r--r-- | test/Sema/self-comparison.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/self-comparison.c b/test/Sema/self-comparison.c index b2b06c2..1baba27 100644 --- a/test/Sema/self-comparison.c +++ b/test/Sema/self-comparison.c @@ -31,3 +31,8 @@ int compare_enum() { enum { A }; return A == A; // no-warning } + +// Don't complain in unevaluated contexts. +int compare_sizeof(int x) { + return sizeof(x == x); // no-warning +} |