OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [nullptr02.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-std=c++0x" }
3
 
4
// Test assignment to nullptr_t
5
 
6
typedef decltype(nullptr) nullptr_t;
7
 
8
const nullptr_t np1 = nullptr;
9
const nullptr_t np2 = __null;
10
const nullptr_t np3 = 0;
11
const nullptr_t np4 = np1;
12
const nullptr_t np5 = np2;
13
const nullptr_t np6 = np3;
14
const nullptr_t np7 = np4;
15
const nullptr_t np8 = np5;
16
const nullptr_t np9 = np6;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.