[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / lldb / packages / Python / lldbsuite / test / functionalities / ptr_refs / main.c
blobf46862efd8b6347d8a505c022be13c23a1da8f4b
1 //===-- main.c --------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
13 struct referent {
14 const char *p;
17 int main (int argc, char const *argv[])
19 const char *my_ptr = strdup("hello");
20 struct referent *r = malloc(sizeof(struct referent));
21 r->p = my_ptr;
23 printf("%p\n", r); // break here
25 return 0;