diff options
Diffstat (limited to 'test/Import/extern-c-function')
| -rw-r--r-- | test/Import/extern-c-function/Inputs/F.cpp | 3 | ||||
| -rw-r--r-- | test/Import/extern-c-function/test.cpp | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/Import/extern-c-function/Inputs/F.cpp b/test/Import/extern-c-function/Inputs/F.cpp new file mode 100644 index 000000000000..c417d5630260 --- /dev/null +++ b/test/Import/extern-c-function/Inputs/F.cpp @@ -0,0 +1,3 @@ +extern "C" { + void f(int arg); +} diff --git a/test/Import/extern-c-function/test.cpp b/test/Import/extern-c-function/test.cpp new file mode 100644 index 000000000000..50227cdf9c2b --- /dev/null +++ b/test/Import/extern-c-function/test.cpp @@ -0,0 +1,4 @@ +// RUN: clang-import-test -import %S/Inputs/F.cpp -expression %s +void expr() { + f(2); +}
\ No newline at end of file |
