diff options
Diffstat (limited to 'test/Analysis/Inputs/no-store-suppression.h')
-rw-r--r-- | test/Analysis/Inputs/no-store-suppression.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Analysis/Inputs/no-store-suppression.h b/test/Analysis/Inputs/no-store-suppression.h new file mode 100644 index 0000000000..6f69b6dad2 --- /dev/null +++ b/test/Analysis/Inputs/no-store-suppression.h @@ -0,0 +1,17 @@ +#pragma clang system_header + +namespace std { +class istream { +public: + bool is_eof(); + char get_char(); +}; + +istream &operator>>(istream &is, char &c) { + if (is.is_eof()) + return; + c = is.get_char(); +} + +extern istream cin; +}; |