Author: dgregor
Date: Tue Jan 18 12:38:18 2011
New Revision: 123758
URL: http://llvm.org/viewvc/llvm-project?rev=123758&view=rev
Log:
Comment a wacky test case
Modified:
cfe/trunk/test/CodeGen/enum.c
Modified: cfe/trunk/test/CodeGen/enum.c
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/enum.c?rev=123758&r1=123757&r2=123758&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/enum.c (original)
+++ cfe/trunk/test/CodeGen/enum.c Tue Jan 18 12:38:18 2011
@@ -1,6 +1,9 @@
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -O3 -emit-llvm -o - | grep
'ret i32 6'
// RUN: %clang_cc1 -triple i386-unknown-unknown -x c++ %s -O3 -emit-llvm -o -
| grep 'ret i32 7'
+// This test case illustrates a peculiarity of the promotion of
+// enumeration types in C and C++. In particular, the enumeration type
+// "z" below promotes to an unsigned int in C but int in C++.
static enum { foo, bar = 1U } z;
int main (void)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits