forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request diffblue#8291 from tautschnig/bugfixes/c++-shift-v…
…s-template C++ front-end: fix parsing of >> as closing template args
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
template <typename _Tp> | ||
struct __remove_cvref_t | ||
{ | ||
}; | ||
|
||
template <typename _Tp, typename _Up = __remove_cvref_t<_Tp>> | ||
struct __inv_unwrap | ||
{ | ||
}; | ||
|
||
template <typename...> | ||
struct __or_; | ||
|
||
template <bool _Cond, typename _Iftrue, typename _Iffalse> | ||
struct conditional | ||
{ | ||
typedef _Iftrue type; | ||
}; | ||
|
||
template <typename _B1, typename _B2, typename _B3, typename... _Bn> | ||
struct __or_<_B1, _B2, _B3, _Bn...> | ||
: public conditional<_B1::value, _B1, __or_<_B2, _B3, _Bn...>>::type | ||
{ | ||
}; | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
int x = 10 >> 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE | ||
main.cpp | ||
|
||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- | ||
^warning: ignoring | ||
^CONVERSION ERROR$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters