Files
qt-creator/tests/auto/cplusplus/cxx11/data/braceInitializers.1.cpp
Christian Kamm 813846232b C++11: Allow for brace initializers like T v{1, 2}.
And add a basic test.

Change-Id: I3b8b87d51a9da154758d17380bba5922795f675c
Reviewed-by: hjk <qthjk@ovi.com>
2012-09-17 14:47:14 +02:00

10 lines
155 B
C++

Type var1 = { 1, 2, 3};
Type var2{1, 2, 3};
//Type var3({1, 2, 3});
class C {
Type var1 = {1, 2, 3};
Type var2{1, 2, 3};
//Type var3({1, 2, 3});
};