Comment a wacky test case

llvm-svn: 123758
This commit is contained in:
Douglas Gregor
2011-01-18 18:38:18 +00:00
parent 99589d07e9
commit d763b3e014

View File

@@ -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)