1 // RUN: %clangxx -O0 %s -o %t && %run %t m1 2>&1 | FileCheck %s
8 int main(int argc
, char *argv
[]) {
9 printf("REALPATH %s\n", realpath(argv
[0], buff
));
10 // CHECK: REALPATH /{{.+}}/realpath.cpp
12 char *buff2
= realpath(argv
[0], nullptr);
13 printf("REALPATH %s\n", buff2
);
14 // CHECK: REALPATH /{{.+}}/realpath.cpp
17 buff2
= realpath(".", nullptr);
18 printf("REALPATH %s\n", buff2
);
19 // CHECK: REALPATH /{{.+}}