commit | 8ef65fbd49bdcd41583424ef40b4ddbd04d7908a | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Sep 10 23:31:45 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Sep 10 23:31:45 2009 +0000 |
tree | a1a21af394257f9dbcade3d553976b4e40f8b654 | |
parent | 85922561eeb9115525c67882344993f7dc424d4c [diff] [blame] |
Eliminate some "default"s in CheckICE. llvm-svn: 81477
diff --git a/clang/test/SemaCXX/i-c-e-cxx.cpp b/clang/test/SemaCXX/i-c-e-cxx.cpp index dc369ab..785ea0e 100644 --- a/clang/test/SemaCXX/i-c-e-cxx.cpp +++ b/clang/test/SemaCXX/i-c-e-cxx.cpp
@@ -8,3 +8,9 @@ struct X0 { static const int value = static_cast<int>(4.0); }; + +void f() { + if (const int value = 17) { + int array[value]; + } +}