You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
475 B
19 lines
475 B
// RUN: %clangxx_msan -O0 -g %s -lutil -o %t && %run %t
|
|
#include <assert.h>
|
|
#include <pty.h>
|
|
|
|
#include <sanitizer/msan_interface.h>
|
|
|
|
int
|
|
main (int argc, char** argv)
|
|
{
|
|
int master, slave;
|
|
openpty(&master, &slave, NULL, NULL, NULL);
|
|
assert(__msan_test_shadow(&master, sizeof(master)) == -1);
|
|
assert(__msan_test_shadow(&slave, sizeof(slave)) == -1);
|
|
|
|
int master2;
|
|
forkpty(&master2, NULL, NULL, NULL);
|
|
assert(__msan_test_shadow(&master2, sizeof(master2)) == -1);
|
|
}
|