We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0bbb3 commit a943081Copy full SHA for a943081
libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/offset_range.pass.cpp
@@ -8,6 +8,9 @@
8
9
// <fstream>
10
11
+// Test that we can seek using offsets larger than 32 bit, and that we can
12
+// retrieve file offsets larger than 32 bit.
13
+
14
// XFAIL: target={{.*}}-windows{{.*}}
15
16
#include <fstream>
@@ -60,6 +63,8 @@ void test_tellg(std::streamoff total_size) {
60
63
}
61
64
62
65
int main(int, char**) {
66
+ // This test assumes and requires that std::streamoff is larger than
67
+ // 32 bit - this is not required in the standard itself.
68
static_assert(sizeof(std::streamoff) > 4);
69
test_tellg(0x100000042ULL);
70
return 0;
0 commit comments