mirror of
https://github.com/opnsense/src.git
synced 2026-02-21 17:00:58 -05:00
25 lines
525 B
C++
25 lines
525 B
C++
|
|
//===----------------------------------------------------------------------===//
|
||
|
|
//
|
||
|
|
// The LLVM Compiler Infrastructure
|
||
|
|
//
|
||
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
||
|
|
// Source Licenses. See LICENSE.TXT for details.
|
||
|
|
//
|
||
|
|
//===----------------------------------------------------------------------===//
|
||
|
|
|
||
|
|
// test forward
|
||
|
|
|
||
|
|
#include <utility>
|
||
|
|
|
||
|
|
struct A
|
||
|
|
{
|
||
|
|
};
|
||
|
|
|
||
|
|
A source() {return A();}
|
||
|
|
const A csource() {return A();}
|
||
|
|
|
||
|
|
int main()
|
||
|
|
{
|
||
|
|
std::forward<A&>(csource()); // error
|
||
|
|
}
|