On Jan 10, 2013, at 5:08 PM, Dmitri Gribenko <[email protected]> wrote:
> On Fri, Jan 11, 2013 at 1:28 AM, Fariborz Jahanian <[email protected]> > wrote: >> URL: >> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp?rev=172144&view=auto >> ============================================================================== >> --- cfe/trunk/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp (added) >> +++ cfe/trunk/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp Thu Jan >> 10 17:28:43 2013 >> @@ -0,0 +1,18 @@ >> +// RUN: %clang_cc1 -S -emit-llvm -o %t.ll %s -triple x86_64-apple-darwin10 >> +// RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o %t-c++11.ll %s -triple >> x86_64-apple-darwin10 >> +// RUN: diff %t.ll %t-c++11.ll > > I think it would be better to specify -std=c++98 explicitly in the > first line. Once c++11 becomes the default, this test will be a > no-op. (And, it already is on Windows.) Sure. In r172221 - Fariborz > > Dmitri > > -- > main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if > (j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/ _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
