di.cpp:
di.cpp:
------
#include <iostream>
using namespace std;struct foo {
int a;
int b;
};int main(int, char **)
{
const foo f = { .a = 10, .b = 11 };
cout << f.a << ' ' << f.b << endl;
return 0;
}
-----$ clang++ -Wall -Wextra -Weffc++ -o di di.cpp
$ ./di
10 11It is a standard C99!
Or am I wrong?
Hi Andrey,
I don't understand what you're asking here. It might be best to post to cfe-dev to get clang-specific answer.
-Chris
Chris Lattner <clattner@apple.com> writes: