blob: 88d2270375ee0bee787cb834125807c14cbeedef [file] [log] [blame]
// RUN: test.sh -p -t %t %s
#include <stdlib.h>
#include <unistd.h>
// Ensure that a correct use of realpath() is not flagged as an error.
// Note that getenv() should be treated as an allocator or should be considered
// as an external function
int main()
{
char * buffer = realpath ("/etc/passwd", NULL);
printf ("%s\n", buffer);
return 0;
}