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 4ab22d7 commit 76cffc2Copy full SHA for 76cffc2
compiler-rt/test/sanitizer_common/TestCases/Posix/variadic-open.cpp
@@ -1,6 +1,8 @@
1
// RUN: rm -rf %t.tmp
2
// RUN: mkdir -p %t.tmp
3
-// RUN: %clangxx -O1 %s -o %t && %run %t %t.tmp/1
+// RUN: %clangxx -O1 %s -o %t && %run %t %t.tmp/1 %t.tmp
4
+
5
+#define _GNU_SOURCE
6
7
#include <assert.h>
8
#include <fcntl.h>
@@ -19,6 +21,10 @@ void test(const char *path, int flags) {
19
21
}
20
22
23
int main(int argc, char *argv[]) {
- assert(argc == 2);
24
+ assert(argc == 3);
25
test(argv[1], O_RDWR | O_CREAT);
26
27
+#ifdef O_TMPFILE
28
+ test(argv[2], O_RDWR | O_TMPFILE);
29
+#endif
30
0 commit comments