2022-05-23 16:14:54 +00:00
|
|
|
// Copyright (C) 2022 Intel Corporation.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-07-18 18:01:18 +00:00
|
|
|
// This is combining the tests found in:
|
|
|
|
// https://sourceware.org/bugzilla/show_bug.cgi?id=29087
|
|
|
|
// https://sourceware.org/bugzilla/show_bug.cgi?id=29377
|
2022-05-23 16:14:54 +00:00
|
|
|
|
|
|
|
#include "lib.h"
|
|
|
|
|
2022-07-18 18:01:18 +00:00
|
|
|
extern void foo(); // other.cpp
|
|
|
|
void (*get_foo())()
|
|
|
|
{
|
|
|
|
return foo;
|
|
|
|
}
|
|
|
|
|
2022-05-23 16:14:54 +00:00
|
|
|
struct Local : S { };
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
Local l;
|
|
|
|
}
|