Skip to content

Commit c1ce428

Browse files
gunantensorflower-gardener
authored andcommitted
Move C++11 raw string out of a macro to work around gcc bug.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55971 PiperOrigin-RevId: 203698458
1 parent 216887d commit c1ce428

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tensorflow/core/common_runtime/direct_session_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,8 +1714,7 @@ TEST(DirectSessionTest, LocalDeviceManager) {
17141714
// y = tf.square(x)
17151715
GraphDef CreateGraphForYEqualsXSquared() {
17161716
GraphDef graph_def;
1717-
QCHECK(protobuf::TextFormat::ParseFromString(
1718-
R"EOF(
1717+
const char* text_proto = R"EOF(
17191718
node {
17201719
name: "x"
17211720
op: "Placeholder"
@@ -1731,8 +1730,9 @@ node {
17311730
versions {
17321731
producer: 26
17331732
}
1734-
)EOF",
1735-
&graph_def));
1733+
)EOF";
1734+
1735+
QCHECK(protobuf::TextFormat::ParseFromString(text_proto, &graph_def));
17361736
return graph_def;
17371737
}
17381738

0 commit comments

Comments
 (0)