Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
645aa04f
Commit
645aa04f
authored
Jan 16, 2019
by
Paul
Browse files
Formatting
parent
6c7565dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
test/operation.cpp
test/operation.cpp
+7
-9
No files found.
test/operation.cpp
View file @
645aa04f
...
...
@@ -110,11 +110,10 @@ struct final_operation
{
MIGRAPHX_THROW
(
"not computable"
);
}
void
finalize
(
migraphx
::
context
&
,
const
migraphx
::
shape
&
,
const
std
::
vector
<
migraphx
::
shape
>&
)
const
{}
void
finalize
(
migraphx
::
context
&
,
const
migraphx
::
shape
&
,
const
std
::
vector
<
migraphx
::
shape
>&
)
const
{
}
};
struct
final_operation_throw
...
...
@@ -124,9 +123,8 @@ struct final_operation_throw
{
MIGRAPHX_THROW
(
"not computable"
);
}
[[
gnu
::
noreturn
]]
void
finalize
(
migraphx
::
context
&
,
const
migraphx
::
shape
&
,
const
std
::
vector
<
migraphx
::
shape
>&
)
const
[[
gnu
::
noreturn
]]
void
finalize
(
migraphx
::
context
&
,
const
migraphx
::
shape
&
,
const
std
::
vector
<
migraphx
::
shape
>&
)
const
{
MIGRAPHX_THROW
(
"finalize"
);
}
...
...
@@ -162,7 +160,7 @@ TEST_CASE(check_run_finalize_throw)
{
migraphx
::
operation
op
=
final_operation_throw
{};
migraphx
::
context
ctx
{};
EXPECT
(
test
::
throws
([
&
]{
op
.
finalize
(
ctx
,
{},
{});
}));
EXPECT
(
test
::
throws
([
&
]
{
op
.
finalize
(
ctx
,
{},
{});
}));
}
int
main
(
int
argc
,
const
char
*
argv
[])
{
test
::
run
(
argc
,
argv
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment