Summary: Fail quietly to translate enum initializer lists. Reviewed By: grievejia Differential Revision: D5574903 fbshipit-source-id: 6d3c4eamaster
parent
88b74d524d
commit
6ca447fa6a
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (c) 2017 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
union U {
|
||||
int f1;
|
||||
int f2[3];
|
||||
};
|
||||
|
||||
void union_initialize_FIXME() {
|
||||
union U set_f1 = {.f1 = 2};
|
||||
union U set_f2 = {.f2 = {1, 2, 3}};
|
||||
union U set_f1_implicit = {1};
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
/* @generated */
|
||||
digraph iCFG {
|
||||
"union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_1" [label="1: Start union_initialize_FIXME\nFormals: \nLocals: set_f1_implicit:U set_f2:U set_f1:U \n DECLARE_LOCALS(&return,&set_f1_implicit,&set_f2,&set_f1); [line 14]\n " color=yellow style=filled]
|
||||
|
||||
|
||||
"union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_1" -> "union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_2" ;
|
||||
"union_initialize_FIXME.324b85335f5d2e418a28cb97eb896f20_2" [label="2: Exit union_initialize_FIXME \n " color=yellow style=filled]
|
||||
|
||||
|
||||
}
|
Loading…
Reference in new issue